mirror of
https://github.com/XTLS/Xray-core.git
synced 2025-06-18 14:19:48 +03:00
Add skipFakeDNS to inbound session
This commit is contained in:
@ -137,6 +137,13 @@ func (ctx *Context) GetAppStatus() []string {
|
||||
return ctx.Inbound.AppStatus
|
||||
}
|
||||
|
||||
func (ctx Context) GetSkipFakeDNS() bool {
|
||||
if ctx.Inbound == nil {
|
||||
return false
|
||||
}
|
||||
return ctx.Inbound.SkipFakeDNS
|
||||
}
|
||||
|
||||
// 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