review comments

This commit is contained in:
Matthew R Kasun
2023-01-20 13:29:19 -05:00
parent dc58c2c637
commit 5423a458c3
2 changed files with 7 additions and 1 deletions

View File

@@ -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
}