DNS outbound: Add blockTypes (#3812)
This commit is contained in:
1 parent
d7c5a0fc5f
commit
3fed0c773f
4 files changed
+39
-16
No files matched your search
@@ -13,6 +13,7 @@ type DNSOutboundConfig struct {
|
||||
Port uint16 `json:"port"`
|
||||
UserLevel uint32 `json:"userLevel"`
|
||||
NonIPQuery string `json:"nonIPQuery"`
|
||||
BlockTypes []int32 `json:"blockTypes"`
|
||||
}
|
||||
|
||||
func (c *DNSOutboundConfig) Build() (proto.Message, error) {
|
||||
@@ -34,5 +35,6 @@ func (c *DNSOutboundConfig) Build() (proto.Message, error) {
|
||||
return nil, errors.New(`unknown "nonIPQuery": `, c.NonIPQuery)
|
||||
}
|
||||
config.Non_IPQuery = c.NonIPQuery
|
||||
config.BlockTypes = c.BlockTypes
|
||||
return config, nil
|
||||
}
|
||||
Reference in new issue
Block a user