mirror of
https://github.com/MatsuriDayo/nekoray.git
synced 2025-12-18 04:54:38 +03:00
refactor vpn settings
fix: nekoray_core freedom udp loopback feat: copy custom config
This commit is contained in:
@@ -71,7 +71,7 @@ func updateRoutes() {
|
||||
|
||||
func getBindInterfaceIndex(address string) uint32 {
|
||||
host, _, _ := net.SplitHostPort(address)
|
||||
if !net.ParseIP(host).IsGlobalUnicast() {
|
||||
if net.ParseIP(host).IsLoopback() {
|
||||
return 0
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user