0
0
Fork 0
mirror of https://github.com/schollz/croc.git synced 2025-10-11 13:21:00 +02:00

hide relay param if not going to be used

This commit is contained in:
qk-santi 2024-02-12 09:30:20 +01:00
parent a2228e80c2
commit 48eb2a2a7c

View file

@ -623,7 +623,7 @@ func (c *Client) Send(filesInfo []FileInfo, emptyFoldersToTransfer []FileInfo, t
return return
} }
flags := &strings.Builder{} flags := &strings.Builder{}
if c.Options.RelayAddress != models.DEFAULT_RELAY { if c.Options.RelayAddress != models.DEFAULT_RELAY && !c.Options.OnlyLocal {
flags.WriteString("--relay " + c.Options.RelayAddress + " ") flags.WriteString("--relay " + c.Options.RelayAddress + " ")
} }
if c.Options.RelayPassword != models.DEFAULT_PASSPHRASE { if c.Options.RelayPassword != models.DEFAULT_PASSPHRASE {