Rename VPN -> TUN

This commit is contained in:
arm64v8a
2023-07-14 13:47:52 +09:00
parent 282dd5aacf
commit 3c4556e78c
14 changed files with 64 additions and 64 deletions

View File

@@ -64,7 +64,7 @@ func setupCore() {
if getNekorayTunIndex() == 0 {
return resolver_def.LookupIP(context.Background(), "ip", host)
}
// Windows VPN mode use Go resolver
// Windows Tun Mode use Go resolver
return resolver_go.LookupIP(context.Background(), "ip", host)
}
neko_common.GetCurrentInstance = func() interface{} {

View File

@@ -141,7 +141,7 @@ func getBindInterfaceIndex(address string) uint32 {
}
}
// Not in VPN mode
// Not in Tun Mode
if nextInterface == 0 {
return 0
}

View File

@@ -25,7 +25,7 @@ func nekorayLinuxProtect(fd int) bool {
}
}
// check is in VPN mode
// check is in Tun Mode
if is_fwmark_exist(514) {
if cap_net_admin == 1 {
// have permission