1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2024-12-21 17:46:58 -05:00

update dns to adapt to protobuf change

This commit is contained in:
Shelikhoo 2021-09-07 08:03:29 +01:00
parent eb423bee54
commit 350ac46b41
No known key found for this signature in database
GPG Key ID: C4D5E79D22B25316

View File

@ -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),