Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/MHSanaei/3x-ui.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMHSanaei <ho3ein.sanaei@gmail.com>2023-06-14 19:20:19 +0300
committerMHSanaei <ho3ein.sanaei@gmail.com>2023-06-14 19:20:19 +0300
commitd40e61fc454a9c42d2ac69950074bf3504d484bf (patch)
treefdbc6f122ad99a078698c82205520c15167b8242 /web/controller/inbound.go
parentc0f1a926e588303051a6a3e977ed2948e6dfd764 (diff)
fix and improve
Diffstat (limited to 'web/controller/inbound.go')
-rw-r--r--web/controller/inbound.go7
1 files changed, 1 insertions, 6 deletions
diff --git a/web/controller/inbound.go b/web/controller/inbound.go
index 461c4b27..a9699bbb 100644
--- a/web/controller/inbound.go
+++ b/web/controller/inbound.go
@@ -145,12 +145,7 @@ func (a *InboundController) getClientIps(c *gin.Context) {
email := c.Param("email")
ips, err := a.inboundService.GetInboundClientIps(email)
- if err != nil {
- jsonObj(c, "Failed to get client IPs", nil)
- return
- }
-
- if ips == "" {
+ if err != nil || ips == "" {
jsonObj(c, "No IP Record", nil)
return
}