mirror of
https://github.com/schollz/croc.git
synced 2025-10-11 21:30:16 +02:00
use all the config options
This commit is contained in:
parent
d0ebb7ad38
commit
15a19e1998
1 changed files with 24 additions and 0 deletions
|
@ -229,6 +229,18 @@ func send(c *cli.Context) (err error) {
|
||||||
if !c.IsSet("pass") {
|
if !c.IsSet("pass") {
|
||||||
crocOptions.RelayPassword = rememberedOptions.RelayPassword
|
crocOptions.RelayPassword = rememberedOptions.RelayPassword
|
||||||
}
|
}
|
||||||
|
if !c.IsSet("relay6") {
|
||||||
|
crocOptions.RelayAddress6 = rememberedOptions.RelayAddress6
|
||||||
|
}
|
||||||
|
if !c.IsSet("overwrite") {
|
||||||
|
crocOptions.Overwrite = rememberedOptions.Overwrite
|
||||||
|
}
|
||||||
|
if !c.IsSet("curve") {
|
||||||
|
crocOptions.Curve = rememberedOptions.Curve
|
||||||
|
}
|
||||||
|
if !c.IsSet("local") {
|
||||||
|
crocOptions.OnlyLocal = rememberedOptions.OnlyLocal
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
var fnames []string
|
var fnames []string
|
||||||
|
@ -443,6 +455,18 @@ func receive(c *cli.Context) (err error) {
|
||||||
if !c.IsSet("pass") {
|
if !c.IsSet("pass") {
|
||||||
crocOptions.RelayPassword = rememberedOptions.RelayPassword
|
crocOptions.RelayPassword = rememberedOptions.RelayPassword
|
||||||
}
|
}
|
||||||
|
if !c.IsSet("relay6") {
|
||||||
|
crocOptions.RelayAddress6 = rememberedOptions.RelayAddress6
|
||||||
|
}
|
||||||
|
if !c.IsSet("overwrite") {
|
||||||
|
crocOptions.Overwrite = rememberedOptions.Overwrite
|
||||||
|
}
|
||||||
|
if !c.IsSet("curve") {
|
||||||
|
crocOptions.Curve = rememberedOptions.Curve
|
||||||
|
}
|
||||||
|
if !c.IsSet("local") {
|
||||||
|
crocOptions.OnlyLocal = rememberedOptions.OnlyLocal
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if crocOptions.SharedSecret == "" {
|
if crocOptions.SharedSecret == "" {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue