antoniomika / sish

HTTP(S)/WS(S)/TCP Tunnels to localhost using only SSH.
https://ssi.sh
MIT License
4.03k stars 308 forks source link

Better handling of reconnects #328

Open tionis opened 2 weeks ago

tionis commented 2 weeks ago

I discovered a potential problem when using sish/tuns.sh with tunmgr:

If the internet connection has a glitch and the ssh connection is lost, tunmgr tries to reconnect with the same parameters but gets assigned a new domain due to the old one still being blocked by the not yet timed out old connection Perhaps sish could get support for e.g. some force parameter in the command to kill the old connection when a new one is established?