mirror of
https://github.com/XTLS/Xray-core.git
synced 2024-11-24 09:31:29 +00:00
Co-authored-by: Loyalsoldier <10487845+Loyalsoldier@users.noreply.github.com>
This commit is contained in:
parent
c4fc277758
commit
0f0a424e8c
|
@ -58,7 +58,7 @@ func (m *GeoIPMatcher) Init(cidrs []*CIDR) error {
|
||||||
m.ip6 = make([]ipv6, 0, ip6Count)
|
m.ip6 = make([]ipv6, 0, ip6Count)
|
||||||
m.prefix6 = make([]uint8, 0, ip6Count)
|
m.prefix6 = make([]uint8, 0, ip6Count)
|
||||||
|
|
||||||
for _, cidr := range cidrs {
|
for _, cidr := range cidrList {
|
||||||
ip := cidr.Ip
|
ip := cidr.Ip
|
||||||
prefix := uint8(cidr.Prefix)
|
prefix := uint8(cidr.Prefix)
|
||||||
switch len(ip) {
|
switch len(ip) {
|
||||||
|
|
Loading…
Reference in a new issue