diff options
Diffstat (limited to 'web/controller')
| -rw-r--r-- | web/controller/inbound.go | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/web/controller/inbound.go b/web/controller/inbound.go index d13e40bc..5ce58d53 100644 --- a/web/controller/inbound.go +++ b/web/controller/inbound.go @@ -146,11 +146,18 @@ func (a *InboundController) getClientIps(c *gin.Context) { ips, err := a.inboundService.GetInboundClientIps(email) if err != nil { + jsonObj(c, "Failed to get client IPs", nil) + return + } + + if ips == "" { jsonObj(c, "No IP Record", nil) return } + jsonObj(c, ips, nil) } + func (a *InboundController) clearClientIps(c *gin.Context) { email := c.Param("email") |
