add keepalive for tun

This commit is contained in:
ginuerzh
2022-08-22 22:14:09 +08:00
parent dc36d50fb2
commit fe6554d8a3
5 changed files with 85 additions and 19 deletions

View File

@ -23,7 +23,6 @@ func init() {
type tunHandler struct {
group *chain.NodeGroup
routes sync.Map
exit chan struct{}
router *chain.Router
md metadata
options handler.Options
@ -36,7 +35,6 @@ func NewHandler(opts ...handler.Option) handler.Handler {
}
return &tunHandler{
exit: make(chan struct{}, 1),
options: options,
}
}