mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2025-09-05 01:36:19 +00:00
Change port check
We can use same port on difference IP's.
This commit is contained in:
parent
abc590ae71
commit
0f317359d9
1 changed files with 2 additions and 2 deletions
|
@ -82,8 +82,8 @@ func (s *AllSetting) CheckValid() error {
|
||||||
return common.NewError("Sub port is not a valid port:", s.SubPort)
|
return common.NewError("Sub port is not a valid port:", s.SubPort)
|
||||||
}
|
}
|
||||||
|
|
||||||
if s.SubPort == s.WebPort {
|
if (s.SubPort == s.WebPort) && (s.WebListen == s.SubListen) {
|
||||||
return common.NewError("Sub and Web could not use same port:", s.SubPort)
|
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 != "" {
|
if s.WebCertFile != "" || s.WebKeyFile != "" {
|
||||||
|
|
Loading…
Reference in a new issue