diff options
| author | MHSanaei <ho3ein.sanaei@gmail.com> | 2023-05-22 17:01:41 +0300 |
|---|---|---|
| committer | MHSanaei <ho3ein.sanaei@gmail.com> | 2023-05-22 17:01:41 +0300 |
| commit | 1fa9101b405ad1ba0127317ea4f8a151048b97ee (patch) | |
| tree | e03a93684953b3473a717a283953464bf368008a /web/controller | |
| parent | 3f2e1aede90984d3bafab377509f712e5ce51ec0 (diff) | |
[feature] add multi domain tls (CDN ready)
Co-Authored-By: Alireza Ahmadi <alireza7@gmail.com>
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") |
