Browse Source

Merge pull request #4 from boypt/fixvet

fix: json field tag syntax
Kslr 6 years ago
parent
commit
48f5e7e76b
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) {