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

Merge pull request #659 from qk-santi/hide-relay-not-used

hide relay param if not going to be used
This commit is contained in:
Zack 2024-02-12 06:37:28 -07:00 committed by GitHub
commit 30a6b14443
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -623,7 +623,7 @@ func (c *Client) Send(filesInfo []FileInfo, emptyFoldersToTransfer []FileInfo, t
return
}
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 + " ")
}
if c.Options.RelayPassword != models.DEFAULT_PASSPHRASE {