Chore: bump to go1.18rc1, use netip.Addr to replace net.IP with system TUN stack

This commit is contained in:
yaling888
2022-03-12 02:16:13 +08:00
parent 8333815e95
commit 8b4f9a35f6
19 changed files with 166 additions and 805 deletions

View File

@ -389,3 +389,9 @@ func genAddr(host string, port int, allowLan bool) string {
return fmt.Sprintf("127.0.0.1:%d", port)
}
func Cleanup() {
if tunStackListener != nil {
_ = tunStackListener.Close()
}
}