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:
@ -109,6 +109,14 @@ func (ctx *Context) GetAttributes() map[string]string {
|
||||
return ctx.Content.Attributes
|
||||
}
|
||||
|
||||
// GetSkipDNSResolve implements routing.Context.
|
||||
func (ctx *Context) GetSkipDNSResolve() bool {
|
||||
if ctx.Content == nil {
|
||||
return false
|
||||
}
|
||||
return ctx.Content.SkipDNSResolve
|
||||
}
|
||||
|
||||
// AsRoutingContext creates a context from context.context with session info.
|
||||
func AsRoutingContext(ctx context.Context) routing.Context {
|
||||
return &Context{
|
||||
|
Reference in New Issue
Block a user