mirror of
https://github.com/1Panel-dev/1Panel.git
synced 2025-09-06 22:55:38 +08:00
fix: Optimize container port detection mechanism (#10220)
This commit is contained in:
parent
bc95e47b92
commit
4deb92e715
1 changed files with 1 additions and 1 deletions
|
@ -213,7 +213,7 @@ func ScanPortWithProto(port int, proto string) bool {
|
|||
}
|
||||
|
||||
func ScanPortWithIP(ip string, port int) bool {
|
||||
if len(ip) == 0 {
|
||||
if len(ip) == 0 || ip == "0.0.0.0" || ip == "::" {
|
||||
return ScanPort(port)
|
||||
}
|
||||
address := net.JoinHostPort(ip, fmt.Sprintf("%d", port))
|
||||
|
|
Loading…
Add table
Reference in a new issue