do not recreate tun device when connecting to server failed

This commit is contained in:
ginuerzh
2022-11-11 20:53:34 +08:00
parent 08a937f3a1
commit 81b6efc9b8
3 changed files with 51 additions and 24 deletions

View File

@ -16,6 +16,10 @@ import (
"github.com/songgao/water/waterutil"
)
var (
ErrTun = errors.New("tun device error")
)
func init() {
registry.HandlerRegistry().Register("tun", NewHandler)
}