return 'currently unimplemented' on egress endpoints

updated logic in logic.CheckHostPorts to fix failing test
This commit is contained in:
Matthew R Kasun
2023-01-23 15:24:47 -05:00
parent ff0a770174
commit cee245856b
4 changed files with 49 additions and 49 deletions

View File

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