mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2025-12-18 05:04:40 +03:00
@@ -72,8 +72,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 != "" {
|
||||||
|
|||||||
Reference in New Issue
Block a user