summaryrefslogtreecommitdiff
path: root/source3/param/loadparm.c
diff options
context:
space:
mode:
Diffstat (limited to 'source3/param/loadparm.c')
-rw-r--r--source3/param/loadparm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/param/loadparm.c b/source3/param/loadparm.c
index b378342372..30fbc9713e 100644
--- a/source3/param/loadparm.c
+++ b/source3/param/loadparm.c
@@ -4252,7 +4252,7 @@ const char *get_called_name(void)
static fstring called_name;
if (!*local_machine) {
- fstrcpy(called_name, get_my_primary_ip());
+ fstrcpy(called_name, client_socket_addr());
DEBUG(8,("get_called_name: assuming that client used IP address [%s] as called name.\n",
called_name));
return called_name;