Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Relay password is not being read from config file #177

Closed
maximbaz opened this issue Nov 19, 2019 · 1 comment
Closed

Relay password is not being read from config file #177

maximbaz opened this issue Nov 19, 2019 · 1 comment

Comments

@maximbaz
Copy link
Contributor

maximbaz commented Nov 19, 2019

  1. Configure a relay and save its settings to the file:

    croc --remember --relay XXX --pass YYY send file1
    
  2. Send the file using the saved configs:

    croc send file2
    

Expected: it will work

Actual: relay is being read from the config, but relay password is not, resulting in:

could not connect to XXX: bad response: bad password

This works, so the problem is definitely in the password.

croc --pass YYY send file3

The password is present in the config file, it's just not being read by croc.


And if after the above I would like to use a public relay that doesn't have a password, I imagine I'd have to do the following to reset the password:

croc --relay 142.93.177.120:9009 --pass '' send file4
@schollz
Copy link
Owner

schollz commented Nov 19, 2019

Thanks, I pushed a fix for this

maximbaz added a commit to maximbaz/croc that referenced this issue Nov 19, 2019
schollz added a commit that referenced this issue Nov 19, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants