Ver Fonte

Merge pull request #3456 from gravitl/NET-2005

Net 2005
Abhishek K há 3 meses atrás
pai
commit
146297f0b1
1 ficheiros alterados com 5 adições e 1 exclusões
  1. 5 1
      logic/hosts.go

+ 5 - 1
logic/hosts.go

@@ -566,7 +566,11 @@ func CheckHostPorts(h *models.Host) {
 	}
 	// iterate until port is not found or max iteration is reached
 	for i := 0; portsInUse[h.ListenPort] && i < maxPort-minPort+1; i++ {
-		h.ListenPort++
+		if h.ListenPort == 443 {
+			h.ListenPort = 51821
+		} else {
+			h.ListenPort++
+		}
 		if h.ListenPort > maxPort {
 			h.ListenPort = minPort
 		}