[feature] add multi domain tls (CDN ready)

Co-Authored-By: Alireza Ahmadi <alireza7@gmail.com>
This commit is contained in:
MHSanaei
2023-05-22 17:31:41 +03:30
parent 3f2e1aede9
commit 1fa9101b40
9 changed files with 167 additions and 80 deletions

View File

@@ -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")