schollz/croc

croc --help hangs with broken dns

gandalf3 opened this issue · 0 comments

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..