0
mirror of https://github.com/XTLS/Xray-core.git synced 2025-06-18 22:29:49 +03:00

refactor: new dns app

This commit is contained in:
AkinoKaede
2021-03-18 23:24:24 +08:00
parent 4e63c22197
commit 8884e948fe
24 changed files with 1240 additions and 620 deletions

View File

@ -28,6 +28,12 @@ func (c routingContext) GetTargetPort() net.Port {
return net.Port(c.RoutingContext.GetTargetPort())
}
// GetSkipDNSResolve is a mock implementation here to match the interface,
// SkipDNSResolve is set from dns module, no use if coming from a protobuf object?
func (c routingContext) GetSkipDNSResolve() bool {
return false
}
// AsRoutingContext converts a protobuf RoutingContext into an implementation of routing.Context.
func AsRoutingContext(r *RoutingContext) routing.Context {
return routingContext{r}