]> git.ipfire.org Git - thirdparty/rsync.git/commitdiff
Check the global option "address" if the user didn't specify
authorWayne Davison <wayned@samba.org>
Mon, 6 Dec 2004 22:45:03 +0000 (22:45 +0000)
committerWayne Davison <wayned@samba.org>
Mon, 6 Dec 2004 22:45:03 +0000 (22:45 +0000)
an --address option when starting the daemon.

clientserver.c

index 0cb548f32a3a69d14d81ce7a0c255a38096aeb4e..ceb53d1e22662e9339e458db267e70103f90e16e 100644 (file)
@@ -600,6 +600,8 @@ int daemon_main(void)
 
        if (rsync_port == 0 && (rsync_port = lp_rsync_port()) == 0)
                rsync_port = RSYNC_PORT;
+       if (bind_address == NULL)
+               bind_address = lp_bind_address();
 
        log_init();