schollz / croc

Easily and securely send things from one computer to another :crocodile: :package:
https://schollz.com/software/croc6
MIT License
26.78k stars 1.07k forks source link

croc --help hangs with broken dns #735

Closed gandalf3 closed 2 weeks ago

gandalf3 commented 2 weeks ago

Describe the bug

croc seems to attempt to resolve a name lookup during croc --help and croc --version

To Reproduce

Steps to reproduce the behavior:

  1. break your dns in some way (guessing at this part; running lsof on croc shows it has libnss_resolve.so open and not much else)
  2. run croc --help
  3. wait for name resolution to time out
  4. enjoy the help text :]

Expected behaviour

croc should just print the help message and exit

Version

v10.0.8

Additional context

in my case im on a lan without internet access; im assuming crock is hanging due to dns for the aforementioned reason, but it could be something else..