mirror of
https://github.com/shtorm-7/sing-box-extended.git
synced 2026-05-28 06:55:58 +03:00
Add runtime warnings
This commit is contained in:
@@ -6,7 +6,6 @@ import (
|
||||
"context"
|
||||
"net"
|
||||
"net/netip"
|
||||
"runtime"
|
||||
"strconv"
|
||||
"strings"
|
||||
|
||||
@@ -140,10 +139,9 @@ func (t *Tun) NewError(ctx context.Context, err error) {
|
||||
}
|
||||
|
||||
func mkInterfaceName() (tunName string) {
|
||||
switch runtime.GOOS {
|
||||
case "darwin":
|
||||
if C.IsDarwin {
|
||||
tunName = "utun"
|
||||
default:
|
||||
} else {
|
||||
tunName = "tun"
|
||||
}
|
||||
interfaces, err := net.Interfaces()
|
||||
|
||||
Reference in New Issue
Block a user