fix: tun stack shown

This commit is contained in:
wwqgtxx
2022-10-10 19:02:57 +08:00
parent 2c236387b7
commit 77a3c1c3ae
3 changed files with 18 additions and 14 deletions

View File

@ -186,7 +186,7 @@ func New(options config.Tun, tcpIn chan<- C.ConnContext, udpIn chan<- *inbound.P
return
}
l.tunIf = tunIf
l.tunStack, err = tun.NewStack(options.Stack, tun.StackOptions{
l.tunStack, err = tun.NewStack(strings.ToLower(options.Stack.String()), tun.StackOptions{
Context: context.TODO(),
Tun: tunIf,
MTU: tunOptions.MTU,