summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--source3/web/diagnose.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/web/diagnose.c b/source3/web/diagnose.c
index 396499bcb9..efd6d1d0a1 100644
--- a/source3/web/diagnose.c
+++ b/source3/web/diagnose.c
@@ -73,7 +73,7 @@ BOOL smbd_running(void)
if (!cli_initialise(&cli))
return False;
- if (!cli_connect(&cli, "localhost", &loopback_ip)) {
+ if (!cli_connect(&cli, global_myname(), &loopback_ip)) {
cli_shutdown(&cli);
return False;
}