summaryrefslogtreecommitdiffstats
path: root/modules-available
diff options
context:
space:
mode:
authorSimon Rettberg2024-06-17 16:08:12 +0200
committerSimon Rettberg2024-06-17 16:08:12 +0200
commita79933dcfa55a552663754708710a981c047ef33 (patch)
tree4b3dfb2a7aa214b1201077b2733d2634377c89c3 /modules-available
parent[dnbd3] Ignore servers with 0.0.0.0 (diff)
downloadslx-admin-a79933dcfa55a552663754708710a981c047ef33.tar.gz
slx-admin-a79933dcfa55a552663754708710a981c047ef33.tar.xz
slx-admin-a79933dcfa55a552663754708710a981c047ef33.zip
[dnbd3] Fix 0.0.0.0 check
Diffstat (limited to 'modules-available')
-rw-r--r--modules-available/dnbd3/baseconfig/getconfig.inc.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules-available/dnbd3/baseconfig/getconfig.inc.php b/modules-available/dnbd3/baseconfig/getconfig.inc.php
index dbc3671d..b962106d 100644
--- a/modules-available/dnbd3/baseconfig/getconfig.inc.php
+++ b/modules-available/dnbd3/baseconfig/getconfig.inc.php
@@ -36,12 +36,12 @@ foreach ($res as $row) {
if ($row['fixedip'] === '<self>') {
$row['fixedip'] = Property::getServerIp();
$defPrio = Dnbd3::preferLocal() ? 500 : 2000;
- } elseif ($row['fixedip'] === '0.0.0.0') {
- continue;
} else {
$defPrio = 1000;
}
$ip = $row['fixedip'] ?: $row['clientip'];
+ if (empty($ip) || $ip === '0.0.0.0')
+ continue;
// See if this server is meant for the client at all
if (!is_null($row['locationid']) && !isset($locationsAssoc[$row['locationid']])) {
$fallback[$ip] = true;