diff options
author | Simon Rettberg | 2017-10-10 17:40:51 +0200 |
---|---|---|
committer | Simon Rettberg | 2017-10-10 17:40:51 +0200 |
commit | 0041e188f7ef4c936eb08f26e08f229e7ce1b550 (patch) | |
tree | 52f2cb90e2b44c1325bbc8a65b47b3c088750929 /modules-available/dnbd3/inc/dnbd3rpc.inc.php | |
parent | [dnbd3] New module for managing dnbd3 servers - WIP (diff) | |
download | slx-admin-0041e188f7ef4c936eb08f26e08f229e7ce1b550.tar.gz slx-admin-0041e188f7ef4c936eb08f26e08f229e7ce1b550.tar.xz slx-admin-0041e188f7ef4c936eb08f26e08f229e7ce1b550.zip |
[dnbd3] More progress, manage location restrictions for proxies
Diffstat (limited to 'modules-available/dnbd3/inc/dnbd3rpc.inc.php')
-rw-r--r-- | modules-available/dnbd3/inc/dnbd3rpc.inc.php | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/modules-available/dnbd3/inc/dnbd3rpc.inc.php b/modules-available/dnbd3/inc/dnbd3rpc.inc.php index 41dcefd4..6134489a 100644 --- a/modules-available/dnbd3/inc/dnbd3rpc.inc.php +++ b/modules-available/dnbd3/inc/dnbd3rpc.inc.php @@ -14,6 +14,10 @@ class Dnbd3Rpc { */ public static function query($stats, $clients, $images, $server, $port = 5003) { + // Special case - local server + if ($server === '<self>') { + $server = '127.0.0.1'; + } $url = 'http://' . $server . ':' . $port . '/query?'; if ($stats) { $url .= 'q=stats&'; |