mirror of
https://github.com/schollz/croc.git
synced 2025-10-11 13:21:00 +02:00
Switch to GlobalIsSet
This commit is contained in:
parent
252475f72e
commit
b27b814b49
1 changed files with 2 additions and 2 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue