#722 -- Avoid assigning to port 8080 (InfluxDB uses ports in the range)

This commit is contained in:
Buster "Silver Eagle" Neece 2018-08-16 05:49:15 -05:00
parent fa1bd8460b
commit 9d68b11edd
2 changed files with 6 additions and 3 deletions

View File

@ -129,9 +129,6 @@ services:
- '8070:8070'
- '8075:8075'
- '8076:8076'
- '8080:8080'
- '8085:8085'
- '8086:8086'
- '8090:8090'
- '8095:8095'
- '8096:8096'

View File

@ -284,7 +284,13 @@ class Configuration
}
// Iterate from port 8000 to 9000, in increments of 10
$protected_ports = [8080];
for($port = 8000; $port < 9000; $port += 10) {
if (in_array($port, $protected_ports)) {
continue;
}
$range_in_use = false;
for($i = $port; $i < $port+10; $i++) {
if (isset($used_ports[$i])) {