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
path: root/web
diff options
context:
space:
mode:
authorguard43ru <guard43ru@users.noreply.github.com>2023-12-16 21:48:07 +0300
committerGitHub <noreply@github.com>2023-12-16 21:48:07 +0300
commit9b60b0fd458df0ee7547024f2bd0b16fd09b6a15 (patch)
tree9ca9440f8534624170deb49e05da9eb9a66896a3 /web
parentc6881e5149a9cb30ced5fd0c339ce1a1b581a0af (diff)
Change port check (#1268)
We can use same port on difference IP's.
Diffstat (limited to 'web')
-rw-r--r--web/entity/entity.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/web/entity/entity.go b/web/entity/entity.go
index d00f51e1..69e5b2d4 100644
--- a/web/entity/entity.go
+++ b/web/entity/entity.go
@@ -72,8 +72,8 @@ func (s *AllSetting) CheckValid() error {
return common.NewError("Sub port is not a valid port:", s.SubPort)
}
- if s.SubPort == s.WebPort {
- return common.NewError("Sub and Web could not use same port:", s.SubPort)
+ if (s.SubPort == s.WebPort) && (s.WebListen == s.SubListen) {
+ return common.NewError("Sub and Web could not use same ip:port, ", s.SubListen, ":", s.SubPort, " & ", s.WebListen, ":", s.WebPort)
}
if s.WebCertFile != "" || s.WebKeyFile != "" {