From 48eb2a2a7c42d625200557a7f326f4fbd57ee3dc Mon Sep 17 00:00:00 2001 From: qk-santi <94850169+qk-santi@users.noreply.github.com> Date: Mon, 12 Feb 2024 09:30:20 +0100 Subject: [PATCH] hide relay param if not going to be used --- src/croc/croc.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/croc/croc.go b/src/croc/croc.go index a4e23a1..e1704b4 100644 --- a/src/croc/croc.go +++ b/src/croc/croc.go @@ -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 {