add list support for auther, admission and bypass

This commit is contained in:
ginuerzh
2022-08-23 21:49:49 +08:00
parent fe6554d8a3
commit bdd239fb09
11 changed files with 134 additions and 71 deletions

View File

@ -50,6 +50,10 @@ func (h *tunHandler) keepAlive(ctx context.Context, conn net.Conn, ip net.IP) {
copy(keepAliveData[:4], keepAliveHeader) // magic header
copy(keepAliveData[4:], ip.To16())
if _, err := conn.Write(keepAliveData[:]); err != nil {
return
}
ticker := time.NewTicker(h.md.keepAlivePeriod)
defer ticker.Stop()