summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xbin/deluser.sh6
1 files changed, 6 insertions, 0 deletions
diff --git a/bin/deluser.sh b/bin/deluser.sh
index 84c8446ec..f12ec9032 100755
--- a/bin/deluser.sh
+++ b/bin/deluser.sh
@@ -58,6 +58,12 @@ if (empty($args['host'])) {
else {
_die("Specify a host name", true);
}
+
+ // host can be a URL like tls://192.168.12.44
+ $host_url = parse_url($args['host']);
+ if ($host_url['host']) {
+ $args['host'] = $host_url['host'];
+ }
}
// connect to DB