mirror of
https://github.com/1Panel-dev/1Panel.git
synced 2025-09-05 06:04:35 +08:00
fix: Optimize container port detection mechanism
This commit is contained in:
parent
bc95e47b92
commit
b2ceb24272
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