mirror of
https://github.com/RsyncProject/rsync.git
synced 2026-10-03 15:44:40 -04:00
If rsync_port is 0, set it to RSYNC_PORT.
This commit is contained in:
1 parent
cf510ad2c5
commit
3add5835db
1 file changed
+3
@@ -88,6 +88,9 @@ int start_socket_client(char *host, char *path, int argc, char *argv[])
|
||||
*p = '\0';
|
||||
}
|
||||
|
||||
if (rsync_port == 0)
|
||||
rsync_port = RSYNC_PORT;
|
||||
|
||||
fd = open_socket_out_wrapped(host, rsync_port, bind_address,
|
||||
default_af_hint);
|
||||
if (fd == -1)
|
||||
|
||||
Reference in new issue
Block a user