mirror of
https://github.com/MetaCubeX/mihomo.git
synced 2026-04-22 15:17:08 +08:00
chore: add logging for get tun name from fd
This commit is contained in:
@@ -158,6 +158,9 @@ func New(options LC.Tun, tunnel C.Tunnel, additions ...inbound.Addition) (l *Lis
|
||||
if tunnelName, err := getTunnelName(int32(options.FileDescriptor)); err == nil {
|
||||
tunName = tunnelName // sing-tun must have the truth tun interface name even it from a fd
|
||||
forwarderBindInterface = true
|
||||
log.Debugln("[TUN] use tun name %s for fd %d", tunnelName, options.FileDescriptor)
|
||||
} else {
|
||||
log.Warnln("[TUN] get tun name failed for fd %d, fallback to use tun interface name %s", options.FileDescriptor, tunName)
|
||||
}
|
||||
}
|
||||
routeAddress := options.RouteAddress
|
||||
|
||||
Reference in New Issue
Block a user