Add skipFakeDNS to inbound session

This commit is contained in:
世界 2021-09-13 10:58:52 +08:00
parent e316cd4c66
commit 14aa152a8a
No known key found for this signature in database
GPG key ID: CD109927C34A63C4
3 changed files with 19 additions and 4 deletions

View file

@ -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{