mirror of
https://github.com/gravitl/netmaker.git
synced 2025-10-07 01:36:23 +08:00
return 'currently unimplemented' on egress endpoints
updated logic in logic.CheckHostPorts to fix failing test
This commit is contained in:
@@ -354,6 +354,8 @@ func CheckHostPorts(h *models.Host) {
|
||||
for i := 0; portsInUse[h.ListenPort] && i < maxPort-minPort+1; i++ {
|
||||
updatePort(&h.ListenPort)
|
||||
}
|
||||
// allocate h.ListenPort so it is unavailable to h.ProxyListenPort
|
||||
portsInUse[h.ListenPort] = true
|
||||
for i := 0; portsInUse[h.ProxyListenPort] && i < maxPort-minPort+1; i++ {
|
||||
updatePort(&h.ProxyListenPort)
|
||||
}
|
||||
|
Reference in New Issue
Block a user