mirror of
https://github.com/v2fly/v2ray-core.git
synced 2026-11-16 13:32:59 -08:00
update dns to adapt to protobuf change
This commit is contained in:
1 file changed
+1
-1
+1
-1
@@ -15,7 +15,7 @@ type StaticHosts struct {
|
||||
}
|
||||
|
||||
// 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)
|
||||
sh := &StaticHosts{
|
||||
ips: make([][]net.Address, len(hosts)+len(legacy)+16),
|
||||
|
||||
Reference in new issue
Block a user