If rsync_port is 0, set it to RSYNC_PORT.