Router: Add localIP and localPort; Add sourceIP as an alias of source (#4992)

https://github.com/XTLS/Xray-core/discussions/4984#discussioncomment-13990687

Closes https://github.com/XTLS/Xray-core/issues/4993
This commit is contained in:
patterniha
2025-08-08 01:50:39 +02:00
committed by GitHub
parent 9359844149
commit 5dce7e4e25
13 changed files with 351 additions and 211 deletions

View File

@@ -495,7 +495,7 @@ func BenchmarkMultiGeoIPMatcher(b *testing.B) {
})
}
matcher, err := NewMultiGeoIPMatcher(geoips, false)
matcher, err := NewMultiGeoIPMatcher(geoips, "target")
common.Must(err)
ctx := withOutbound(&session.Outbound{Target: net.TCPDestination(net.ParseAddress("8.8.8.8"), 80)})