udptunnel icon indicating copy to clipboard operation
udptunnel copied to clipboard

Initial address resolution should not fail fatally

Open dsnet opened this issue 7 years ago • 0 comments

In this logic: https://github.com/dsnet/udptunnel/blob/f0061804a690179a044286f40ab715b4c96e98ab/tunnel.go#L131

We try to resolve the remote address at start-up. However, if the network is not initialized yet, then it is possible that this returns an error and the daemon fails fatally early on. This should be more graceful where it still continues into its tunneling logic (even if the remote endpoint is unknown) and defer proper resolution until later.

dsnet avatar Jun 11 '18 07:06 dsnet