Switch to GlobalIsSet

This commit is contained in:
Maxim Baz 2019-11-19 22:58:35 +01:00
parent 252475f72e
commit b27b814b49
No known key found for this signature in database
GPG Key ID: 011FDC52DA839335
1 changed files with 2 additions and 2 deletions

View File

@ -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
}
}