mirror of
https://github.com/SagerNet/sing-tun.git
synced 2025-04-03 20:07:40 +03:00
Update gVisor to 20220905.0
This commit is contained in:
parent
2f15b0cd3f
commit
575ac29417
7 changed files with 39 additions and 36 deletions
6
tun.go
6
tun.go
|
@ -47,10 +47,10 @@ type Options struct {
|
|||
}
|
||||
|
||||
func CalculateInterfaceName(name string) (tunName string) {
|
||||
if name != "" {
|
||||
tunName = name
|
||||
} else if runtime.GOOS == "darwin" {
|
||||
if runtime.GOOS == "darwin" {
|
||||
tunName = "utun"
|
||||
} else if name != "" {
|
||||
tunName = name
|
||||
} else {
|
||||
tunName = "tun"
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue