Fix fakeip routing

This commit is contained in:
世界
2023-06-11 20:58:59 +08:00
parent 0cb9cff690
commit 52e9059a8d
5 changed files with 38 additions and 18 deletions
+5
View File
@@ -21,3 +21,8 @@ type FakeIPStorage interface {
FakeIPLoad(address netip.Addr) (string, bool)
FakeIPReset() error
}
type FakeIPTransport interface {
dns.Transport
Store() FakeIPStore
}
+1
View File
@@ -46,6 +46,7 @@ type InboundContext struct {
SourceGeoIPCode string
GeoIPCode string
ProcessInfo *process.Info
FakeIP bool
// dns cache