mirror of
https://github.com/XTLS/Xray-core.git
synced 2025-05-01 01:44:15 +00:00
Add skipFakeDNS to inbound session
This commit is contained in:
parent
e316cd4c66
commit
14aa152a8a
3 changed files with 19 additions and 4 deletions
|
@ -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{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue