DNS outbound: Set "reject" as the default value for nonIPQuery

https://github.com/XTLS/Xray-core/pull/4903#issuecomment-3091367130
This commit is contained in:
RPRX
2025-08-16 19:12:59 +00:00
parent 40ce850bd9
commit de23e51077
3 changed files with 4 additions and 4 deletions

View File

@@ -28,9 +28,7 @@ func (c *DNSOutboundConfig) Build() (proto.Message, error) {
config.Server.Address = c.Address.Build()
}
switch c.NonIPQuery {
case "":
c.NonIPQuery = "drop"
case "drop", "skip", "reject":
case "", "reject", "drop", "skip":
default:
return nil, errors.New(`unknown "nonIPQuery": `, c.NonIPQuery)
}