mirror of
https://github.com/shtorm-7/sing-box-extended.git
synced 2026-05-31 16:34:22 +03:00
Update sing-box core, refactor MASQUE, update XHTTP
This commit is contained in:
@@ -3,6 +3,7 @@ package route
|
||||
import (
|
||||
"context"
|
||||
"net/netip"
|
||||
"slices"
|
||||
"strings"
|
||||
|
||||
"github.com/sagernet/sing-box/adapter"
|
||||
@@ -78,10 +79,8 @@ func (r *Router) isLocalSource(source netip.Addr) bool {
|
||||
return true
|
||||
}
|
||||
if r.platformInterface != nil {
|
||||
for _, addr := range r.platformInterface.MyInterfaceAddress() {
|
||||
if addr == source {
|
||||
return true
|
||||
}
|
||||
if slices.Contains(r.platformInterface.MyInterfaceAddress(), source) {
|
||||
return true
|
||||
}
|
||||
}
|
||||
for _, netInterface := range r.network.InterfaceFinder().Interfaces() {
|
||||
|
||||
Reference in New Issue
Block a user