cli
cli copied to clipboard
Loophole doesn't reconnect after a network outage
My wireless network connection is occasionally disrupted. Whenever this happens, Loophole attempts to reconnect 5 times and then quits.
Instead of quitting when the network goes down, should Loophole stay open and attempt to reconnect when the network is available again?
Hi @jarble we have a hard-coded retry count here: https://github.com/loophole/cli/blob/06767ef30bebf6095f1d93f6552d4727cc7ce241/internal/app/loophole/loophole.go#L102-L120 We could either always make it retry forever, or make the retry configurable via cli argument. @Morishiri what would you prefer?
let's make it configurable via cli, with 0 being infinity
@Morishiri and @0x7f If this becomes configurable, should it be "infinity" by default?