croc
croc copied to clipboard
--remember doesn't
Describe the bug
I set up my own proxy and discovered that --remember only creates a zero-byte ~/.config/croc/internal-dns file.
I ran find ~ -xdev -type f -exec stat -c "%y %n" {} + | sort -r | head -10 | sort -r to give me the 10 newest files after running croc as above, and the empty internal-dns is all I found.
To Reproduce
- Run
croc --remember --pass ./super-secret-password relay --ports 11111,11112,11113,11114,11115 - Connect and transfer files.
- Stop the relay with
Ctrl+C. - Discover that nothing is remembered and that
~/.config/croc/contains onlyinternal-dns, which is empty.
Expected behaviour
Some kind of config file which is read and acted upon.
Version
croc version v9.6.5-8ab65d0
Additional context
- Running without
--rememberdoesn't create theinternal-dnsfile. - Separately I tried
croc configas per https://schollz.com/software/croc/, but that simply returned withsecuring channel...2023/10/13 17:27:54 room not ready.
happy to accept a pr for this
Thank you so much!