mirror of
https://github.com/schollz/croc.git
synced 2024-11-27 12:34:19 +03:00
hide relay param if not going to be used
This commit is contained in:
parent
a2228e80c2
commit
48eb2a2a7c
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user