Browse Source

update dns to adapt to protobuf change

Shelikhoo 4 years ago
parent
commit
350ac46b41
1 changed files with 1 additions and 1 deletions
  1. 1 1
      app/dns/hosts.go

+ 1 - 1
app/dns/hosts.go

@@ -15,7 +15,7 @@ type StaticHosts struct {
 }
 }
 
 
 // NewStaticHosts creates a new StaticHosts instance.
 // NewStaticHosts creates a new StaticHosts instance.
-func NewStaticHosts(hosts []*Config_HostMapping, legacy map[string]*net.IPOrDomain) (*StaticHosts, error) {
+func NewStaticHosts(hosts []*HostMapping, legacy map[string]*net.IPOrDomain) (*StaticHosts, error) {
 	g := new(strmatcher.MatcherGroup)
 	g := new(strmatcher.MatcherGroup)
 	sh := &StaticHosts{
 	sh := &StaticHosts{
 		ips:      make([][]net.Address, len(hosts)+len(legacy)+16),
 		ips:      make([][]net.Address, len(hosts)+len(legacy)+16),