mirror of
https://github.com/gravitl/netmaker.git
synced 2025-10-23 17:03:17 +08:00
review comments
This commit is contained in:
@@ -327,6 +327,13 @@ func CheckHostPorts(h *models.Host) {
|
||||
return
|
||||
}
|
||||
for _, host := range hosts {
|
||||
if host.ID == h.ID {
|
||||
//skip self
|
||||
continue
|
||||
}
|
||||
if !host.EndpointIP.Equal(h.EndpointIP) {
|
||||
continue
|
||||
}
|
||||
portsInUse[host.ListenPort] = true
|
||||
portsInUse[host.ProxyListenPort] = true
|
||||
}
|
||||
|
Reference in New Issue
Block a user