Fix CalculateInterfaceName on iOS
This commit is contained in:
parent
c569e3e92f
commit
959bd54905
1 changed files with 1 additions and 1 deletions
2
tun.go
2
tun.go
|
|
@ -175,7 +175,7 @@ func (o *Options) Inet6GatewayAddr() netip.Addr {
|
|||
}
|
||||
|
||||
func CalculateInterfaceName(name string) (tunName string) {
|
||||
if runtime.GOOS == "darwin" {
|
||||
if runtime.GOOS == "darwin" || runtime.GOOS == "ios" {
|
||||
tunName = "utun"
|
||||
} else if name != "" {
|
||||
tunName = name
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue