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