mirror of
https://github.com/MetaCubeX/mihomo.git
synced 2026-04-22 23:27:15 +08:00
chore: don't force bind interface when using fd for tun
This commit is contained in:
@@ -157,7 +157,7 @@ func New(options LC.Tun, tunnel C.Tunnel, additions ...inbound.Addition) (l *Lis
|
||||
if options.FileDescriptor > 0 {
|
||||
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
|
||||
//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)
|
||||
|
||||
Reference in New Issue
Block a user