Chore: bump to go1.18rc1, use netip.Addr to replace net.IP with system TUN stack
This commit is contained in:
@ -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()
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user