Fix fakeip routing

This commit is contained in:
世界
2023-06-10 16:26:40 +08:00
parent a9a2fec766
commit 1968ddb0c1
5 changed files with 38 additions and 18 deletions

View File

@@ -21,3 +21,8 @@ type FakeIPStorage interface {
FakeIPLoad(address netip.Addr) (string, bool)
FakeIPReset() error
}
type FakeIPTransport interface {
dns.Transport
Store() FakeIPStore
}

View File

@@ -46,6 +46,7 @@ type InboundContext struct {
SourceGeoIPCode string
GeoIPCode string
ProcessInfo *process.Info
FakeIP bool
// dns cache