mirror of
https://github.com/schollz/croc.git
synced 2025-10-11 13:21:00 +02:00
Merge pull request #179 from maximbaz/remember-relay-password-receive
Remember relay password on receive too #177
This commit is contained in:
commit
3d672d6ac2
1 changed files with 4 additions and 1 deletions
|
@ -171,7 +171,7 @@ func send(c *cli.Context) (err error) {
|
||||||
if !c.IsSet("code") {
|
if !c.IsSet("code") {
|
||||||
crocOptions.SharedSecret = rememberedOptions.SharedSecret
|
crocOptions.SharedSecret = rememberedOptions.SharedSecret
|
||||||
}
|
}
|
||||||
if !c.IsSet("pass") {
|
if !c.GlobalIsSet("pass") {
|
||||||
crocOptions.RelayPassword = rememberedOptions.RelayPassword
|
crocOptions.RelayPassword = rememberedOptions.RelayPassword
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -334,6 +334,9 @@ func receive(c *cli.Context) (err error) {
|
||||||
if crocOptions.SharedSecret == "" {
|
if crocOptions.SharedSecret == "" {
|
||||||
crocOptions.SharedSecret = rememberedOptions.SharedSecret
|
crocOptions.SharedSecret = rememberedOptions.SharedSecret
|
||||||
}
|
}
|
||||||
|
if !c.GlobalIsSet("pass") {
|
||||||
|
crocOptions.RelayPassword = rememberedOptions.RelayPassword
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if crocOptions.SharedSecret == "" {
|
if crocOptions.SharedSecret == "" {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue