mirror of
https://github.com/google/cdc-file-transfer.git
synced 2026-10-29 00:40:30 +03:00
Instead of calling netstat on the remote device to detect available ports, simply call bind with port 0 to bind to any available port. Since the port is not yet known when cdc_rsync_server.exe is called, port forwarding needs to be started AFTER the server reports its port.