mirror of https://github.com/schollz/croc.git
Switch to GlobalIsSet
This commit is contained in:
parent
252475f72e
commit
b27b814b49
|
@ -171,7 +171,7 @@ func send(c *cli.Context) (err error) {
|
|||
if !c.IsSet("code") {
|
||||
crocOptions.SharedSecret = rememberedOptions.SharedSecret
|
||||
}
|
||||
if !c.IsSet("pass") {
|
||||
if !c.GlobalIsSet("pass") {
|
||||
crocOptions.RelayPassword = rememberedOptions.RelayPassword
|
||||
}
|
||||
}
|
||||
|
@ -334,7 +334,7 @@ func receive(c *cli.Context) (err error) {
|
|||
if crocOptions.SharedSecret == "" {
|
||||
crocOptions.SharedSecret = rememberedOptions.SharedSecret
|
||||
}
|
||||
if !c.IsSet("pass") {
|
||||
if !c.GlobalIsSet("pass") {
|
||||
crocOptions.RelayPassword = rememberedOptions.RelayPassword
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue