Skip to content

Commit

Permalink
main: fix port fallback parsing
Browse files Browse the repository at this point in the history
  • Loading branch information
stapelberg committed Feb 23, 2025
1 parent 0b5df60 commit 8962520
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/maincmd/clientserver.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import (

// rsync/clientserver.c:start_socket_client
func socketClient(osenv receiver.Osenv, opts *rsyncopts.Options, host string, path string, port int, dest string) (*rsyncstats.TransferStats, error) {
if port == 0 {
if port < 0 {
host += ":873" // rsync daemon port
} else {
host += ":" + strconv.Itoa(port)
Expand Down

0 comments on commit 8962520

Please sign in to comment.