diff --git a/cmd/run.go b/cmd/run.go index f690dfc..5743558 100644 --- a/cmd/run.go +++ b/cmd/run.go @@ -20,9 +20,9 @@ import ( "syscall" "time" - "github.com/daeuniverse/softwind/netproxy" - "github.com/daeuniverse/softwind/pkg/fastrand" - "github.com/daeuniverse/softwind/protocol/direct" + "github.com/daeuniverse/outbound/netproxy" + "github.com/daeuniverse/outbound/pkg/fastrand" + "github.com/daeuniverse/outbound/protocol/direct" "gopkg.in/natefinch/lumberjack.v2" "github.com/daeuniverse/dae/cmd/internal" diff --git a/common/bitlist/bitlist.go b/common/bitlist/bitlist.go index 489b3ac..df53115 100644 --- a/common/bitlist/bitlist.go +++ b/common/bitlist/bitlist.go @@ -10,7 +10,7 @@ import ( "math/bits" "github.com/daeuniverse/dae/pkg/anybuffer" - "github.com/daeuniverse/softwind/common" + "github.com/daeuniverse/outbound/common" ) // CompactBitList allows your units to be of arbitrary bit size. diff --git a/common/netutils/dns.go b/common/netutils/dns.go index 58a7701..7c37447 100644 --- a/common/netutils/dns.go +++ b/common/netutils/dns.go @@ -16,9 +16,9 @@ import ( "time" "github.com/daeuniverse/dae/common/consts" - "github.com/daeuniverse/softwind/netproxy" - "github.com/daeuniverse/softwind/pkg/fastrand" - "github.com/daeuniverse/softwind/pool" + "github.com/daeuniverse/outbound/netproxy" + "github.com/daeuniverse/outbound/pkg/fastrand" + "github.com/daeuniverse/outbound/pool" dnsmessage "github.com/miekg/dns" ) diff --git a/common/netutils/ip46.go b/common/netutils/ip46.go index 7cf13b2..ca9c28d 100644 --- a/common/netutils/ip46.go +++ b/common/netutils/ip46.go @@ -12,7 +12,7 @@ import ( "net/netip" "sync" - "github.com/daeuniverse/softwind/netproxy" + "github.com/daeuniverse/outbound/netproxy" dnsmessage "github.com/miekg/dns" "github.com/sirupsen/logrus" ) diff --git a/common/netutils/ip46_test.go b/common/netutils/ip46_test.go index 1f592ea..20724fb 100644 --- a/common/netutils/ip46_test.go +++ b/common/netutils/ip46_test.go @@ -11,7 +11,7 @@ import ( "testing" "time" - "github.com/daeuniverse/softwind/protocol/direct" + "github.com/daeuniverse/outbound/protocol/direct" ) func TestResolveIp46(t *testing.T) { diff --git a/common/utils.go b/common/utils.go index 298a527..350195b 100644 --- a/common/utils.go +++ b/common/utils.go @@ -22,7 +22,7 @@ import ( "time" "unsafe" - "github.com/daeuniverse/softwind/netproxy" + "github.com/daeuniverse/outbound/netproxy" internal "github.com/daeuniverse/dae/pkg/ebpf_internal" dnsmessage "github.com/miekg/dns" diff --git a/component/dns/upstream.go b/component/dns/upstream.go index 5bb0c1d..bd8682f 100644 --- a/component/dns/upstream.go +++ b/component/dns/upstream.go @@ -16,7 +16,7 @@ import ( "github.com/daeuniverse/dae/common/consts" "github.com/daeuniverse/dae/common/netutils" - "github.com/daeuniverse/softwind/protocol/direct" + "github.com/daeuniverse/outbound/protocol/direct" ) var ( diff --git a/component/outbound/dialer/alive_dialer_set.go b/component/outbound/dialer/alive_dialer_set.go index 8f1411a..743e026 100644 --- a/component/outbound/dialer/alive_dialer_set.go +++ b/component/outbound/dialer/alive_dialer_set.go @@ -13,7 +13,7 @@ import ( "time" "github.com/daeuniverse/dae/common/consts" - "github.com/daeuniverse/softwind/pkg/fastrand" + "github.com/daeuniverse/outbound/pkg/fastrand" "github.com/sirupsen/logrus" ) diff --git a/component/outbound/dialer/block.go b/component/outbound/dialer/block.go index a3a4df8..8dc2840 100644 --- a/component/outbound/dialer/block.go +++ b/component/outbound/dialer/block.go @@ -7,7 +7,7 @@ package dialer import ( D "github.com/daeuniverse/outbound/dialer" - "github.com/daeuniverse/softwind/netproxy" + "github.com/daeuniverse/outbound/netproxy" ) func NewBlockDialer(option *GlobalOption, dialCallback func()) (netproxy.Dialer, *Property) { diff --git a/component/outbound/dialer/connectivity_check.go b/component/outbound/dialer/connectivity_check.go index ace20f6..949a071 100644 --- a/component/outbound/dialer/connectivity_check.go +++ b/component/outbound/dialer/connectivity_check.go @@ -24,10 +24,10 @@ import ( "github.com/daeuniverse/dae/common/consts" "github.com/daeuniverse/dae/common/netutils" - "github.com/daeuniverse/softwind/netproxy" - "github.com/daeuniverse/softwind/pkg/fastrand" - "github.com/daeuniverse/softwind/pool" - "github.com/daeuniverse/softwind/protocol/direct" + "github.com/daeuniverse/outbound/netproxy" + "github.com/daeuniverse/outbound/pkg/fastrand" + "github.com/daeuniverse/outbound/pool" + "github.com/daeuniverse/outbound/protocol/direct" dnsmessage "github.com/miekg/dns" "github.com/sirupsen/logrus" ) diff --git a/component/outbound/dialer/dialer.go b/component/outbound/dialer/dialer.go index b0bd76a..4c8ec5b 100644 --- a/component/outbound/dialer/dialer.go +++ b/component/outbound/dialer/dialer.go @@ -11,7 +11,7 @@ import ( "time" D "github.com/daeuniverse/outbound/dialer" - "github.com/daeuniverse/softwind/netproxy" + "github.com/daeuniverse/outbound/netproxy" "github.com/sirupsen/logrus" ) diff --git a/component/outbound/dialer/direct.go b/component/outbound/dialer/direct.go index 99a3d10..d8a707c 100644 --- a/component/outbound/dialer/direct.go +++ b/component/outbound/dialer/direct.go @@ -7,7 +7,7 @@ package dialer import ( D "github.com/daeuniverse/outbound/dialer" - "github.com/daeuniverse/softwind/netproxy" + "github.com/daeuniverse/outbound/netproxy" ) func NewDirectDialer(option *GlobalOption, fullcone bool) (netproxy.Dialer, *Property) { diff --git a/component/outbound/dialer/register.go b/component/outbound/dialer/register.go index 40b5117..6fdc383 100644 --- a/component/outbound/dialer/register.go +++ b/component/outbound/dialer/register.go @@ -7,7 +7,7 @@ package dialer import ( D "github.com/daeuniverse/outbound/dialer" - "github.com/daeuniverse/softwind/protocol/direct" + "github.com/daeuniverse/outbound/protocol/direct" ) func NewFromLink(gOption *GlobalOption, iOption InstanceOption, link string, subscriptionTag string) (*Dialer, error) { diff --git a/component/outbound/dialer_group.go b/component/outbound/dialer_group.go index 93af965..fb76b16 100644 --- a/component/outbound/dialer_group.go +++ b/component/outbound/dialer_group.go @@ -13,7 +13,7 @@ import ( "github.com/daeuniverse/dae/common/consts" "github.com/daeuniverse/dae/component/outbound/dialer" _ "github.com/daeuniverse/outbound/dialer" - "github.com/daeuniverse/softwind/netproxy" + "github.com/daeuniverse/outbound/netproxy" "github.com/sirupsen/logrus" ) diff --git a/component/outbound/dialer_group_test.go b/component/outbound/dialer_group_test.go index 65a918d..f1fa08c 100644 --- a/component/outbound/dialer_group_test.go +++ b/component/outbound/dialer_group_test.go @@ -12,7 +12,7 @@ import ( "github.com/daeuniverse/dae/common/consts" "github.com/daeuniverse/dae/component/outbound/dialer" "github.com/daeuniverse/dae/pkg/logger" - "github.com/daeuniverse/softwind/pkg/fastrand" + "github.com/daeuniverse/outbound/pkg/fastrand" ) const ( diff --git a/component/outbound/outbound.go b/component/outbound/outbound.go index 97072ae..8a4dd71 100644 --- a/component/outbound/outbound.go +++ b/component/outbound/outbound.go @@ -14,13 +14,13 @@ import ( _ "github.com/daeuniverse/outbound/dialer/trojan" _ "github.com/daeuniverse/outbound/dialer/tuic" _ "github.com/daeuniverse/outbound/dialer/v2ray" + _ "github.com/daeuniverse/outbound/protocol/juicity" + _ "github.com/daeuniverse/outbound/protocol/shadowsocks" + _ "github.com/daeuniverse/outbound/protocol/trojanc" + _ "github.com/daeuniverse/outbound/protocol/tuic" + _ "github.com/daeuniverse/outbound/protocol/vless" + _ "github.com/daeuniverse/outbound/protocol/vmess" _ "github.com/daeuniverse/outbound/transport/simpleobfs" _ "github.com/daeuniverse/outbound/transport/tls" _ "github.com/daeuniverse/outbound/transport/ws" - _ "github.com/daeuniverse/softwind/protocol/juicity" - _ "github.com/daeuniverse/softwind/protocol/shadowsocks" - _ "github.com/daeuniverse/softwind/protocol/trojanc" - _ "github.com/daeuniverse/softwind/protocol/tuic" - _ "github.com/daeuniverse/softwind/protocol/vless" - _ "github.com/daeuniverse/softwind/protocol/vmess" ) diff --git a/component/sniffing/internal/quicutils/cipher.go b/component/sniffing/internal/quicutils/cipher.go index cc8f9f6..a54484a 100644 --- a/component/sniffing/internal/quicutils/cipher.go +++ b/component/sniffing/internal/quicutils/cipher.go @@ -13,7 +13,7 @@ import ( "io" "github.com/daeuniverse/dae/common" - "github.com/daeuniverse/softwind/pool" + "github.com/daeuniverse/outbound/pool" "golang.org/x/crypto/hkdf" ) diff --git a/component/sniffing/internal/quicutils/hkdf.go b/component/sniffing/internal/quicutils/hkdf.go index 648d2aa..fa67c4a 100644 --- a/component/sniffing/internal/quicutils/hkdf.go +++ b/component/sniffing/internal/quicutils/hkdf.go @@ -9,10 +9,11 @@ package quicutils import ( "encoding/binary" - "github.com/daeuniverse/softwind/pool" - "golang.org/x/crypto/hkdf" "hash" "io" + + "github.com/daeuniverse/outbound/pool" + "golang.org/x/crypto/hkdf" ) // HkdfExpandLabelFromPool HKDF expands a label. diff --git a/component/sniffing/quic.go b/component/sniffing/quic.go index 91fef67..b4ab39b 100644 --- a/component/sniffing/quic.go +++ b/component/sniffing/quic.go @@ -10,7 +10,7 @@ import ( "io/fs" "github.com/daeuniverse/dae/component/sniffing/internal/quicutils" - "github.com/daeuniverse/softwind/pool" + "github.com/daeuniverse/outbound/pool" ) const ( diff --git a/component/sniffing/sniffer.go b/component/sniffing/sniffer.go index 5b66a77..8e4813a 100644 --- a/component/sniffing/sniffer.go +++ b/component/sniffing/sniffer.go @@ -12,8 +12,8 @@ import ( "time" "github.com/daeuniverse/dae/component/sniffing/internal/quicutils" - "github.com/daeuniverse/softwind/pool" - "github.com/daeuniverse/softwind/pool/bytes" + "github.com/daeuniverse/outbound/pool" + "github.com/daeuniverse/outbound/pool/bytes" ) type Sniffer struct { diff --git a/component/sniffing/sniffing_bench_test.go b/component/sniffing/sniffing_bench_test.go index 639b9f2..93df8ad 100644 --- a/component/sniffing/sniffing_bench_test.go +++ b/component/sniffing/sniffing_bench_test.go @@ -7,10 +7,11 @@ package sniffing import ( "fmt" - "github.com/daeuniverse/dae/common" "testing" - "github.com/daeuniverse/softwind/pkg/fastrand" + "github.com/daeuniverse/dae/common" + + "github.com/daeuniverse/outbound/pkg/fastrand" ) var ( diff --git a/control/control_plane.go b/control/control_plane.go index 184773f..96034eb 100644 --- a/control/control_plane.go +++ b/control/control_plane.go @@ -35,10 +35,10 @@ import ( internal "github.com/daeuniverse/dae/pkg/ebpf_internal" "github.com/daeuniverse/dae/pkg/logger" D "github.com/daeuniverse/outbound/dialer" - "github.com/daeuniverse/softwind/pool" - "github.com/daeuniverse/softwind/protocol/direct" - "github.com/daeuniverse/softwind/transport/grpc" - "github.com/daeuniverse/softwind/transport/meek" + "github.com/daeuniverse/outbound/pool" + "github.com/daeuniverse/outbound/protocol/direct" + "github.com/daeuniverse/outbound/transport/grpc" + "github.com/daeuniverse/outbound/transport/meek" dnsmessage "github.com/miekg/dns" "github.com/mohae/deepcopy" "github.com/sirupsen/logrus" diff --git a/control/dns_control.go b/control/dns_control.go index 088a601..222436b 100644 --- a/control/dns_control.go +++ b/control/dns_control.go @@ -25,9 +25,9 @@ import ( "github.com/daeuniverse/dae/component/dns" "github.com/daeuniverse/dae/component/outbound" "github.com/daeuniverse/dae/component/outbound/dialer" - "github.com/daeuniverse/softwind/netproxy" - "github.com/daeuniverse/softwind/pkg/fastrand" - "github.com/daeuniverse/softwind/pool" + "github.com/daeuniverse/outbound/netproxy" + "github.com/daeuniverse/outbound/pkg/fastrand" + "github.com/daeuniverse/outbound/pool" dnsmessage "github.com/miekg/dns" "github.com/mohae/deepcopy" "github.com/sirupsen/logrus" diff --git a/control/tcp.go b/control/tcp.go index 55a6345..b09ef75 100644 --- a/control/tcp.go +++ b/control/tcp.go @@ -17,8 +17,8 @@ import ( "github.com/daeuniverse/dae/common/consts" "github.com/daeuniverse/dae/component/outbound/dialer" "github.com/daeuniverse/dae/component/sniffing" - "github.com/daeuniverse/softwind/netproxy" - "github.com/daeuniverse/softwind/pkg/zeroalloc/io" + "github.com/daeuniverse/outbound/netproxy" + "github.com/daeuniverse/outbound/pkg/zeroalloc/io" "github.com/sirupsen/logrus" "golang.org/x/sys/unix" ) diff --git a/control/udp.go b/control/udp.go index 86456f3..b96b5f4 100644 --- a/control/udp.go +++ b/control/udp.go @@ -16,7 +16,7 @@ import ( ob "github.com/daeuniverse/dae/component/outbound" "github.com/daeuniverse/dae/component/outbound/dialer" "github.com/daeuniverse/dae/component/sniffing" - "github.com/daeuniverse/softwind/pool" + "github.com/daeuniverse/outbound/pool" dnsmessage "github.com/miekg/dns" "github.com/sirupsen/logrus" ) diff --git a/control/udp_endpoint_pool.go b/control/udp_endpoint_pool.go index 6908173..45ce35c 100644 --- a/control/udp_endpoint_pool.go +++ b/control/udp_endpoint_pool.go @@ -15,8 +15,8 @@ import ( "github.com/daeuniverse/dae/common/consts" "github.com/daeuniverse/dae/component/outbound" "github.com/daeuniverse/dae/component/outbound/dialer" - "github.com/daeuniverse/softwind/netproxy" - "github.com/daeuniverse/softwind/pool" + "github.com/daeuniverse/outbound/netproxy" + "github.com/daeuniverse/outbound/pool" ) type UdpHandler func(data []byte, from netip.AddrPort) error diff --git a/go.mod b/go.mod index 5439800..fb32ecf 100644 --- a/go.mod +++ b/go.mod @@ -11,7 +11,6 @@ require ( github.com/cilium/ebpf v0.12.3 github.com/daeuniverse/dae-config-dist/go/dae_config v0.0.0-20230604120805-1c27619b592d github.com/daeuniverse/outbound v0.0.0-20240126121235-33bc68e5f93e - github.com/daeuniverse/softwind v0.0.0-20240125045015-94186ddaef35 github.com/fsnotify/fsnotify v1.7.0 github.com/json-iterator/go v1.1.12 github.com/miekg/dns v1.1.55 @@ -24,27 +23,25 @@ require ( github.com/vishvananda/netlink v1.1.0 github.com/vishvananda/netns v0.0.4 github.com/x-cray/logrus-prefixed-formatter v0.5.2 - golang.org/x/crypto v0.12.0 + golang.org/x/crypto v0.18.0 golang.org/x/exp v0.0.0-20230728194245-b0cb94b80691 - golang.org/x/sys v0.14.1-0.20231108175955-e4099bfacb8c + golang.org/x/sys v0.16.0 google.golang.org/protobuf v1.31.0 gopkg.in/natefinch/lumberjack.v2 v2.2.1 ) require ( - github.com/andybalholm/brotli v1.0.5 // indirect - github.com/gaukas/godicttls v0.0.4 // indirect + github.com/andybalholm/brotli v1.0.6 // indirect + github.com/cloudflare/circl v1.3.7 // indirect + github.com/daeuniverse/quic-go v0.0.0-20240413031024-943f218e0810 // indirect github.com/go-task/slim-sprig v0.0.0-20230315185526-52ccab3ef572 // indirect github.com/google/pprof v0.0.0-20230705174524-200ffdc848b8 // indirect github.com/gorilla/websocket v1.5.0 // indirect - github.com/klauspost/compress v1.16.7 // indirect - github.com/mzz2017/quic-go v0.0.0-20231230054300-5221ce9164a3 // indirect + github.com/klauspost/compress v1.17.4 // indirect github.com/onsi/ginkgo/v2 v2.11.0 // indirect - github.com/quic-go/qtls-go1-20 v0.4.1 // indirect - github.com/quic-go/quic-go v0.37.4 // indirect - go.uber.org/mock v0.3.0 // indirect + go.uber.org/mock v0.4.0 // indirect golang.org/x/mod v0.12.0 // indirect - golang.org/x/net v0.14.0 // indirect + golang.org/x/net v0.20.0 // indirect golang.org/x/tools v0.11.0 // indirect google.golang.org/genproto/googleapis/rpc v0.0.0-20230807174057-1744710a1577 // indirect ) @@ -67,17 +64,17 @@ require ( github.com/modern-go/reflect2 v1.0.2 // indirect github.com/mzz2017/disk-bloom v1.0.1 // indirect github.com/onsi/ginkgo v1.16.5 // indirect - github.com/refraction-networking/utls v1.4.3 // indirect + github.com/refraction-networking/utls v1.6.4 // indirect github.com/seiflotfy/cuckoofilter v0.0.0-20220411075957-e3b120b3f5fb // indirect github.com/spf13/pflag v1.0.5 // indirect gitlab.com/yawning/chacha20.git v0.0.0-20230427033715-7877545b1b37 // indirect - golang.org/x/term v0.11.0 // indirect - golang.org/x/text v0.12.0 // indirect + golang.org/x/term v0.16.0 // indirect + golang.org/x/text v0.14.0 // indirect google.golang.org/grpc v1.57.0 // indirect ) -// replace github.com/daeuniverse/softwind => ../softwind -// replace github.com/daeuniverse/outbound => ../outbound +// replace github.com/daeuniverse/outbound => ../softwind +replace github.com/daeuniverse/outbound => ../outbound // replace github.com/mzz2017/quic-go => ../quic-go diff --git a/go.sum b/go.sum index 24e6a11..40817ee 100644 --- a/go.sum +++ b/go.sum @@ -1,7 +1,7 @@ github.com/adrg/xdg v0.4.0 h1:RzRqFcjH4nE5C6oTAxhBtoE2IRyjBSa62SCbyPidvls= github.com/adrg/xdg v0.4.0/go.mod h1:N6ag73EX4wyxeaoeHctc1mas01KZgsj5tYiAIwqJE/E= -github.com/andybalholm/brotli v1.0.5 h1:8uQZIdzKmjc/iuPu7O2ioW48L81FgatrcpfFmiq/cCs= -github.com/andybalholm/brotli v1.0.5/go.mod h1:fO7iG3H7G2nSZ7m0zPUDn85XEX2GTukHGRSepvi9Eig= +github.com/andybalholm/brotli v1.0.6 h1:Yf9fFpf49Zrxb9NlQaluyE92/+X7UVHlhMNJN2sxfOI= +github.com/andybalholm/brotli v1.0.6/go.mod h1:fO7iG3H7G2nSZ7m0zPUDn85XEX2GTukHGRSepvi9Eig= github.com/antlr/antlr4/runtime/Go/antlr/v4 v4.0.0-20230305170008-8188dc5388df h1:7RFfzj4SSt6nnvCPbCqijJi1nWCd+TqAT3bYCStRC18= github.com/antlr/antlr4/runtime/Go/antlr/v4 v4.0.0-20230305170008-8188dc5388df/go.mod h1:pSwJ0fSY5KhvocuWSx4fz3BA8OrA1bQn+K1Eli3BRwM= github.com/bits-and-blooms/bitset v1.8.0 h1:FD+XqgOZDUxxZ8hzoBFuV9+cGWY9CslN6d5MS5JVb4c= @@ -10,13 +10,13 @@ github.com/bits-and-blooms/bloom/v3 v3.5.0 h1:AKDvi1V3xJCmSR6QhcBfHbCN4Vf8FfxeWk github.com/bits-and-blooms/bloom/v3 v3.5.0/go.mod h1:Y8vrn7nk1tPIlmLtW2ZPV+W7StdVMor6bC1xgpjMZFs= github.com/cilium/ebpf v0.12.3 h1:8ht6F9MquybnY97at+VDZb3eQQr8ev79RueWeVaEcG4= github.com/cilium/ebpf v0.12.3/go.mod h1:TctK1ivibvI3znr66ljgi4hqOT8EYQjz1KWBfb1UVgM= +github.com/cloudflare/circl v1.3.7 h1:qlCDlTPz2n9fu58M0Nh1J/JzcFpfgkFHHX3O35r5vcU= +github.com/cloudflare/circl v1.3.7/go.mod h1:sRTcRWXGLrKw6yIGJ+l7amYJFfAXbZG0kBSc8r4zxgA= github.com/cpuguy83/go-md2man/v2 v2.0.2/go.mod h1:tgQtvFlXSQOSOSIRvRPT7W67SCa46tRHOmNcaadrF8o= github.com/daeuniverse/dae-config-dist/go/dae_config v0.0.0-20230604120805-1c27619b592d h1:hnC39MjR7xt5kZjrKlef7DXKFDkiX8MIcDXYC/6Jf9Q= github.com/daeuniverse/dae-config-dist/go/dae_config v0.0.0-20230604120805-1c27619b592d/go.mod h1:VGWGgv7pCP5WGyHGUyb9+nq/gW0yBm+i/GfCNATOJ1M= -github.com/daeuniverse/outbound v0.0.0-20240126121235-33bc68e5f93e h1:GvldPfT/+6v84H8N3l5g61okMkqmd86RnNku3YoPdp0= -github.com/daeuniverse/outbound v0.0.0-20240126121235-33bc68e5f93e/go.mod h1:RSMbP0N/AtpyTbxhYSCHbeyztj/JOdZfT/m60gL9aHg= -github.com/daeuniverse/softwind v0.0.0-20240125045015-94186ddaef35 h1:nUW4UCZQ7vRXVOzV9J999NLHr/0fLRzBf0d7PRoRJjs= -github.com/daeuniverse/softwind v0.0.0-20240125045015-94186ddaef35/go.mod h1:ly72DcZIxHlKbOEz1qaSCh99lr7ns8T5JLpfww8hXrI= +github.com/daeuniverse/quic-go v0.0.0-20240413031024-943f218e0810 h1:YtEYouFaNrg9sV9vf3UabvKShKn6sD0QaCdOxCwaF3g= +github.com/daeuniverse/quic-go v0.0.0-20240413031024-943f218e0810/go.mod h1:61o2uZUGLrlv1i+oO2rx9sVX0vbf8cHzdSHt7h6lMnM= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c= github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= @@ -41,8 +41,6 @@ github.com/fsnotify/fsnotify v1.4.7/go.mod h1:jwhsz4b93w/PPRr/qN1Yymfu8t87LnFCMo github.com/fsnotify/fsnotify v1.4.9/go.mod h1:znqG4EE+3YCdAaPaxE2ZRY/06pZUdp0tY4IgpuI1SZQ= github.com/fsnotify/fsnotify v1.7.0 h1:8JEhPFa5W2WU7YfeZzPNqzMP6Lwt7L2715Ggo0nosvA= github.com/fsnotify/fsnotify v1.7.0/go.mod h1:40Bi/Hjc2AVfZrqy+aj+yEI+/bRxZnMJyTJwOpGvigM= -github.com/gaukas/godicttls v0.0.4 h1:NlRaXb3J6hAnTmWdsEKb9bcSBD6BvcIjdGdeb0zfXbk= -github.com/gaukas/godicttls v0.0.4/go.mod h1:l6EenT4TLWgTdwslVb4sEMOCf7Bv0JAK67deKr9/NCI= github.com/go-logr/logr v1.2.4 h1:g01GSCwiDw2xSZfjJ2/T9M+S6pFdcNtFYsp+Y43HYDQ= github.com/go-logr/logr v1.2.4/go.mod h1:jdQByPbusPIv2/zmleS9BjJVeZ6kBagPoEUsqbVz/1A= github.com/go-task/slim-sprig v0.0.0-20210107165309-348f09dbbbc0/go.mod h1:fyg7847qk6SyHyPtNmDHnmrv/HOrqktSC+C9fM+CJOE= @@ -76,8 +74,8 @@ github.com/inconshreveable/mousetrap v1.1.0 h1:wN+x4NVGpMsO7ErUn/mUI3vEoE6Jt13X2 github.com/inconshreveable/mousetrap v1.1.0/go.mod h1:vpF70FUmC8bwa3OWnCshd2FqLfsEA9PFc4w1p2J65bw= github.com/json-iterator/go v1.1.12 h1:PV8peI4a0ysnczrg+LtxykD8LfKY9ML6u2jnxaEnrnM= github.com/json-iterator/go v1.1.12/go.mod h1:e30LSqwooZae/UwlEbR2852Gd8hjQvJoHmT4TnhNGBo= -github.com/klauspost/compress v1.16.7 h1:2mk3MPGNzKyxErAw8YaohYh69+pa4sIQSC0fPGCFR9I= -github.com/klauspost/compress v1.16.7/go.mod h1:ntbaceVETuRiXiv4DpjP66DpAtAGkEQskQzEyD//IeE= +github.com/klauspost/compress v1.17.4 h1:Ej5ixsIri7BrIjBkRZLTo6ghwrEtHFk7ijlczPW4fZ4= +github.com/klauspost/compress v1.17.4/go.mod h1:/dCuZOvVtNoHsyb+cuJD3itjs3NbnF6KH9zAO4BDxPM= github.com/kr/pretty v0.3.1 h1:flRD4NNwYAUpkphVc1HcthR4KEIFJ65n8Mw5qdRn3LE= github.com/kr/pretty v0.3.1/go.mod h1:hoEshYVHaxMs3cyo3Yncou5ZscifuDolrwPKZanG3xk= github.com/kr/text v0.2.0 h1:5Nx0Ya0ZqY2ygV366QzturHI13Jq95ApcVaJBhpS+AY= @@ -100,8 +98,6 @@ github.com/mohae/deepcopy v0.0.0-20170929034955-c48cc78d4826 h1:RWengNIwukTxcDr9 github.com/mohae/deepcopy v0.0.0-20170929034955-c48cc78d4826/go.mod h1:TaXosZuwdSHYgviHp1DAtfrULt5eUgsSMsZf+YrPgl8= github.com/mzz2017/disk-bloom v1.0.1 h1:rEF9MiXd9qMW3ibRpqcerLXULoTgRlM21yqqJl1B90M= github.com/mzz2017/disk-bloom v1.0.1/go.mod h1:JLHETtUu44Z6iBmsqzkOtFlRvXSlKnxjwiBRDapizDI= -github.com/mzz2017/quic-go v0.0.0-20231230054300-5221ce9164a3 h1:V0C+4ZV0TzzKH05TAjtxAKODudB5dKyO6rayhtSO55I= -github.com/mzz2017/quic-go v0.0.0-20231230054300-5221ce9164a3/go.mod h1:RVldHw4emztg37XspqsQSOqptlBuYTCHD/brBTROQSw= github.com/nxadm/tail v1.4.4/go.mod h1:kenIhsEOeOJmVchQTgglprH7qJGnHDVpk1VPCcaMI8A= github.com/nxadm/tail v1.4.8 h1:nPr65rt6Y5JFSKQO7qToXr7pePgD6Gwiw05lkbyAQTE= github.com/nxadm/tail v1.4.8/go.mod h1:+ncqLTQzXmGhMZNUePPaPqPvBxHAIsmXswZKocGu+AU= @@ -119,12 +115,8 @@ github.com/onsi/gomega v1.27.8 h1:gegWiwZjBsf2DgiSbf5hpokZ98JVDMcWkUiigk6/KXc= github.com/onsi/gomega v1.27.8/go.mod h1:2J8vzI/s+2shY9XHRApDkdgPo1TKT7P2u6fXeJKFnNQ= github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM= github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= -github.com/quic-go/qtls-go1-20 v0.4.1 h1:D33340mCNDAIKBqXuAvexTNMUByrYmFYVfKfDN5nfFs= -github.com/quic-go/qtls-go1-20 v0.4.1/go.mod h1:X9Nh97ZL80Z+bX/gUXMbipO6OxdiDi58b/fMC9mAL+k= -github.com/quic-go/quic-go v0.37.4 h1:ke8B73yMCWGq9MfrCCAw0Uzdm7GaViC3i39dsIdDlH4= -github.com/quic-go/quic-go v0.37.4/go.mod h1:YsbH1r4mSHPJcLF4k4zruUkLBqctEMBDR6VPvcYjIsU= -github.com/refraction-networking/utls v1.4.3 h1:BdWS3BSzCwWCFfMIXP3mjLAyQkdmog7diaD/OqFbAzM= -github.com/refraction-networking/utls v1.4.3/go.mod h1:4u9V/awOSBrRw6+federGmVJQfPtemEqLBXkML1b0bo= +github.com/refraction-networking/utls v1.6.4 h1:aeynTroaYn7y+mFtqv8D0bQ4bw0y9nJHneGxJ7lvRDM= +github.com/refraction-networking/utls v1.6.4/go.mod h1:2VL2xfiqgFAZtJKeUTlf+PSYFs3Eu7km0gCtXJ3m8zs= github.com/rogpeppe/go-internal v1.9.0 h1:73kH8U+JUqXU8lRuOHeVHaa/SZPifC7BkcraZVejAe8= github.com/rogpeppe/go-internal v1.9.0/go.mod h1:WtVeX8xhTBvf0smdhujwtBcq4Qrzq/fJaraNFVN+nFs= github.com/russross/blackfriday/v2 v2.1.0/go.mod h1:+Rmxgy9KzJVeS9/2gXHxylqXiyQDYRxCVz55jmeOWTM= @@ -143,9 +135,8 @@ github.com/stretchr/testify v1.3.0/go.mod h1:M5WIy9Dh21IEIfnGCwXGc5bZfKNJtfHm1UV github.com/stretchr/testify v1.4.0/go.mod h1:j7eGeouHqKxXV5pUuKE4zz7dFj8WfuZ+81PSLYec5m4= github.com/stretchr/testify v1.5.1/go.mod h1:5W2xD1RspED5o8YsWQXVCued0rvSQ+mT+I5cxcmMvtA= github.com/stretchr/testify v1.6.1/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= +github.com/stretchr/testify v1.7.0 h1:nwc3DEeHmmLAfoZucVR881uASk0Mfjw8xYJ99tb5CcY= github.com/stretchr/testify v1.7.0/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= -github.com/stretchr/testify v1.8.2 h1:+h33VjcLVPDHtOdpUCuF+7gSuG3yGIftsP1YvFihtJ8= -github.com/stretchr/testify v1.8.2/go.mod h1:w2LPCIKwWwSfY2zedu0+kehJoqGctiVI29o6fzry7u4= github.com/twmb/murmur3 v1.1.6 h1:mqrRot1BRxm+Yct+vavLMou2/iJt0tNVTTC0QoIjaZg= github.com/twmb/murmur3 v1.1.6/go.mod h1:Qq/R7NUyOfr65zD+6Q5IHKsJLwP7exErjN6lyyq3OSQ= github.com/v2rayA/ahocorasick-domain v0.0.0-20231231085011-99ceb8ef3208 h1:s/K1ome/+rTDictkqGhqLuAleUymyWnvgNWARjblS9U= @@ -160,13 +151,13 @@ github.com/x-cray/logrus-prefixed-formatter v0.5.2/go.mod h1:2duySbKsL6M18s5GU7V github.com/yuin/goldmark v1.2.1/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74= gitlab.com/yawning/chacha20.git v0.0.0-20230427033715-7877545b1b37 h1:ZrWBE3u/o9cHU2mySXf1687MaK09JOeZt1A+fHnCjmU= gitlab.com/yawning/chacha20.git v0.0.0-20230427033715-7877545b1b37/go.mod h1:3x6b94nWCP/a2XB/joOPMiGYUBvqbLfeY/BkHLeDs6s= -go.uber.org/mock v0.3.0 h1:3mUxI1No2/60yUYax92Pt8eNOEecx2D3lcXZh2NEZJo= -go.uber.org/mock v0.3.0/go.mod h1:a6FSlNadKUHUa9IP5Vyt1zh4fC7uAwxMutEAscFbkZc= +go.uber.org/mock v0.4.0 h1:VcM4ZOtdbR4f6VXfiOpwpVJDL6lCReaZ6mw31wqh7KU= +go.uber.org/mock v0.4.0/go.mod h1:a6FSlNadKUHUa9IP5Vyt1zh4fC7uAwxMutEAscFbkZc= golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w= golang.org/x/crypto v0.0.0-20191011191535-87dc89f01550/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= golang.org/x/crypto v0.0.0-20200622213623-75b288015ac9/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= -golang.org/x/crypto v0.12.0 h1:tFM/ta59kqch6LlvYnPa0yx5a83cL2nHflFhYKvv9Yk= -golang.org/x/crypto v0.12.0/go.mod h1:NF0Gs7EO5K4qLn+Ylc+fih8BSTeIjAP05siRnAh98yw= +golang.org/x/crypto v0.18.0 h1:PGVlW0xEltQnzFZ55hkuX5+KLyrMYhHld1YHO4AKcdc= +golang.org/x/crypto v0.18.0/go.mod h1:R0j02AL6hcrfOiy9T4ZYp/rcWeMxM3L6QYxlOuEG1mg= golang.org/x/exp v0.0.0-20230728194245-b0cb94b80691 h1:/yRP+0AN7mf5DkD3BAI6TOFnd51gEoDEb8o35jIFtgw= golang.org/x/exp v0.0.0-20230728194245-b0cb94b80691/go.mod h1:FXUEEKJgO7OQYeo8N01OfiKP8RXMtf6e8aTskBGqWdc= golang.org/x/mod v0.3.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= @@ -177,8 +168,8 @@ golang.org/x/net v0.0.0-20190404232315-eb5bcb51f2a3/go.mod h1:t9HGtf8HONx5eT2rtn golang.org/x/net v0.0.0-20190620200207-3b0461eec859/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= golang.org/x/net v0.0.0-20200520004742-59133d7f0dd7/go.mod h1:qpuaurCH72eLCgpAm/N6yyVIVM9cpaDIP3A8BGJEC5A= golang.org/x/net v0.0.0-20201021035429-f5854403a974/go.mod h1:sp8m0HH+o8qH0wwXwYZr8TS3Oi6o0r6Gce1SSxlDquU= -golang.org/x/net v0.14.0 h1:BONx9s002vGdD9umnlX1Po8vOZmrgH34qlHcD1MfK14= -golang.org/x/net v0.14.0/go.mod h1:PpSgVXXLK0OxS0F31C1/tv6XNguvCrnXIDrFMspZIUI= +golang.org/x/net v0.20.0 h1:aCL9BSgETF1k+blQaYUBx9hJ9LOGP3gAVemcZlf1Kpo= +golang.org/x/net v0.20.0/go.mod h1:z8BVo6PvndSri0LbOE3hAn0apkU+1YvI6E70E9jsnvY= golang.org/x/sync v0.0.0-20180314180146-1d60e4601c6f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20190423024810-112230192c58/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20201020160332-67f06af15bc9/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= @@ -199,14 +190,16 @@ golang.org/x/sys v0.0.0-20211025201205-69cdffdb9359/go.mod h1:oPkhp1MJrh7nUepCBc golang.org/x/sys v0.0.0-20220715151400-c0bba94af5f8/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20220811171246-fbc7d0a398ab/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.6.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.14.1-0.20231108175955-e4099bfacb8c h1:3kC/TjQ+xzIblQv39bCOyRk8fbEeJcDHwbyxPUU2BpA= -golang.org/x/sys v0.14.1-0.20231108175955-e4099bfacb8c/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= -golang.org/x/term v0.11.0 h1:F9tnn/DA/Im8nCwm+fX+1/eBwi4qFjRT++MhtVC4ZX0= -golang.org/x/term v0.11.0/go.mod h1:zC9APTIj3jG3FdV/Ons+XE1riIZXG4aZ4GTHiPZJPIU= +golang.org/x/sys v0.16.0 h1:xWw16ngr6ZMtmxDyKyIgsE93KNKz5HKmMa3b8ALHidU= +golang.org/x/sys v0.16.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= +golang.org/x/term v0.16.0 h1:m+B6fahuftsE9qjo0VWp2FW0mB3MTJvR0BaMQrq0pmE= +golang.org/x/term v0.16.0/go.mod h1:yn7UURbUtPyrVJPGPq404EukNFxcm/foM+bV/bfcDsY= golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= -golang.org/x/text v0.12.0 h1:k+n5B8goJNdU7hSvEtMUz3d1Q6D/XW4COJSJR6fN0mc= -golang.org/x/text v0.12.0/go.mod h1:TvPlkZtksWOMsz7fbANvkp4WM8x/WCo/om8BMLbz+aE= +golang.org/x/text v0.14.0 h1:ScX5w1eTa3QqT8oi6+ziP7dTV1S2+ALU0bI+0zXKWiQ= +golang.org/x/text v0.14.0/go.mod h1:18ZOQIKpY8NJVqYksKHtTdi31H5itFRjB5/qKTNYzSU= +golang.org/x/time v0.5.0 h1:o7cqy6amK/52YcAKIPlM3a+Fpj35zvRj2TP+e1xFSfk= +golang.org/x/time v0.5.0/go.mod h1:3BpzKBy/shNhVucY/MWOyx10tF3SFh9QdLuxbVysPQM= golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= golang.org/x/tools v0.0.0-20191119224855-298f0cb1881e/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= golang.org/x/tools v0.0.0-20201224043029-2b0845dc783e/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA= diff --git a/pkg/trie/trie.go b/pkg/trie/trie.go index 5f95f69..eb5d5f6 100644 --- a/pkg/trie/trie.go +++ b/pkg/trie/trie.go @@ -16,7 +16,7 @@ import ( "github.com/daeuniverse/dae/common" "github.com/daeuniverse/dae/common/bitlist" - "github.com/daeuniverse/softwind/pool" + "github.com/daeuniverse/outbound/pool" ) var ValidCidrChars = NewValidChars([]byte{'0', '1'})