mirror of
https://github.com/2dust/v2rayN.git
synced 2025-04-19 13:42:24 +00:00
Fix tun interface name in macos
Some checks are pending
release / build (Release) (push) Waiting to run
Some checks are pending
release / build (Release) (push) Waiting to run
This commit is contained in:
parent
a5d99b1eb5
commit
89ce7c23c9
1 changed files with 1 additions and 0 deletions
|
@ -548,6 +548,7 @@ namespace ServiceLib.Services.CoreConfig
|
|||
}
|
||||
|
||||
var tunInbound = JsonUtils.Deserialize<Inbound4Sbox>(Utils.GetEmbedText(Global.TunSingboxInboundFileName)) ?? new Inbound4Sbox { };
|
||||
tunInbound.interface_name = Utils.IsOSX()? $"utun{new Random().Next(99)}": "singbox_tun";
|
||||
tunInbound.mtu = _config.TunModeItem.Mtu;
|
||||
tunInbound.strict_route = _config.TunModeItem.StrictRoute;
|
||||
tunInbound.stack = _config.TunModeItem.Stack;
|
||||
|
|
Loading…
Reference in a new issue