connect to the actual netbios name in smb.conf and not LOCALHOST
authorGerald Carter <jerry@samba.org>
Fri, 17 Jan 2003 14:34:23 +0000 (14:34 +0000)
committerGerald Carter <jerry@samba.org>
Fri, 17 Jan 2003 14:34:23 +0000 (14:34 +0000)
(This used to be commit 3e9701f34c730783648fb2a666f7b57478e5942d)

source3/web/diagnose.c

index 396499bcb9e9905dcce2fceb45e6c21a5783054f..efd6d1d0a19c4f69e6a78d43987ccd846152ca8a 100644 (file)
@@ -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;
        }