Improve local DNS server

This commit is contained in:
世界
2025-04-12 21:26:22 +08:00
parent 9b0db6ab15
commit aadb44ebd6
10 changed files with 82 additions and 40 deletions

View File

@@ -164,6 +164,7 @@ func (w *platformInterfaceWrapper) OpenTun(options *tun.Options, platformOptions
if err != nil {
return nil, E.Cause(err, "query tun name")
}
options.InterfaceMonitor.RegisterMyInterface(options.Name)
dupFd, err := dup(int(tunFd))
if err != nil {
return nil, E.Cause(err, "dup tun file descriptor")