Browse Source

fix: json field tag syntax

sync https://github.com/v2fly/v2ray-core/commit/ad4f41e1c0fd6096aa738004140ec9ca4f4db1bd
Kslr 6 years ago
parent
commit
eb3df1a58e
1 changed files with 3 additions and 3 deletions
  1. 3 3
      infra/conf/dns_proxy.go

+ 3 - 3
infra/conf/dns_proxy.go

@@ -7,9 +7,9 @@ import (
 )
 
 type DnsOutboundConfig struct {
-	Network Network  `json:network`
-	Address *Address `json:address`
-	Port    uint16   `json:port`
+	Network Network  `json:"network"`
+	Address *Address `json:"address"`
+	Port    uint16   `json:"port"`
 }
 
 func (c *DnsOutboundConfig) Build() (proto.Message, error) {