diff options
author | Simon Rettberg | 2017-10-11 16:01:18 +0200 |
---|---|---|
committer | Simon Rettberg | 2017-10-11 16:01:18 +0200 |
commit | 2bf954897109fc761a6aa39bfc4479e087671200 (patch) | |
tree | 5879636d5ec5a363074edf0243d2b088a7abe8ca /modules-available/dnbd3/inc | |
parent | [dnbd3] Fix CIDR generation for proxies, add baseconfig hook for clients (diff) | |
download | slx-admin-2bf954897109fc761a6aa39bfc4479e087671200.tar.gz slx-admin-2bf954897109fc761a6aa39bfc4479e087671200.tar.xz slx-admin-2bf954897109fc761a6aa39bfc4479e087671200.zip |
[dnbd3] Implement adding and deleting servers
Diffstat (limited to 'modules-available/dnbd3/inc')
-rw-r--r-- | modules-available/dnbd3/inc/dnbd3util.inc.php | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/modules-available/dnbd3/inc/dnbd3util.inc.php b/modules-available/dnbd3/inc/dnbd3util.inc.php index 722cc5e3..45ae6135 100644 --- a/modules-available/dnbd3/inc/dnbd3util.inc.php +++ b/modules-available/dnbd3/inc/dnbd3util.inc.php @@ -18,8 +18,13 @@ class Dnbd3Util { } else { continue; // Huh? } - if (!is_null($row['machineuuid']) || $row['clientip'] === $satServerIp) { + if (!is_null($row['machineuuid'])) { unset($dynClients[$row['machineuuid']]); + if ($row['clientip'] === $satServerIp) { + // Lolwut, sat server is openslx client configured for proxy mode!? baleeted. + RunMode::setRunMode($row['machineuuid'], 'dnbd3', null, null, null); + continue; + } } $server = array( 'serverid' => $row['serverid'], |