#722 -- Avoid assigning to port 8080 (InfluxDB uses ports in the range)
This commit is contained in:
parent
fa1bd8460b
commit
9d68b11edd
|
@ -129,9 +129,6 @@ services:
|
|||
- '8070:8070'
|
||||
- '8075:8075'
|
||||
- '8076:8076'
|
||||
- '8080:8080'
|
||||
- '8085:8085'
|
||||
- '8086:8086'
|
||||
- '8090:8090'
|
||||
- '8095:8095'
|
||||
- '8096:8096'
|
||||
|
|
|
@ -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])) {
|
||||
|
|
Loading…
Reference in New Issue