mirror of
https://github.com/MatsuriDayo/nekoray.git
synced 2025-12-18 04:54:38 +03:00
Rename VPN -> TUN
This commit is contained in:
@@ -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{} {
|
||||
|
||||
@@ -141,7 +141,7 @@ func getBindInterfaceIndex(address string) uint32 {
|
||||
}
|
||||
}
|
||||
|
||||
// Not in VPN mode
|
||||
// Not in Tun Mode
|
||||
if nextInterface == 0 {
|
||||
return 0
|
||||
}
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user