1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2026-05-02 10:39:09 -04:00

completely move away from net package

This commit is contained in:
Darien Raymond
2017-08-29 14:32:54 +02:00
parent 815019f6da
commit 52ad41cda3
11 changed files with 78 additions and 78 deletions

View File

@@ -2,9 +2,8 @@ package router
import (
"context"
"net"
v2net "v2ray.com/core/common/net"
"v2ray.com/core/common/net"
)
type Rule struct {
@@ -17,7 +16,7 @@ func (r *Rule) Apply(ctx context.Context) bool {
}
func cidrToCondition(cidr []*CIDR, source bool) (Condition, error) {
ipv4Net := v2net.NewIPNetTable()
ipv4Net := net.NewIPNetTable()
ipv6Cond := NewAnyCondition()
hasIpv6 := false