From 1fa9101b405ad1ba0127317ea4f8a151048b97ee Mon Sep 17 00:00:00 2001 From: MHSanaei Date: Mon, 22 May 2023 17:31:41 +0330 Subject: [feature] add multi domain tls (CDN ready) Co-Authored-By: Alireza Ahmadi --- web/controller/inbound.go | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'web/controller') 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") -- cgit v1.2.3