From 52edfdb0599c2521901e90b31c95b502daee1289 Mon Sep 17 00:00:00 2001 From: Sergei Maklagin Date: Sun, 3 May 2026 04:04:16 +0300 Subject: [PATCH] Remove IPBlocklist and IPAllowlist --- go.mod | 3 +-- protocol/mtproxy/inbound.go | 3 --- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/go.mod b/go.mod index cfcba611..22aea9db 100644 --- a/go.mod +++ b/go.mod @@ -79,7 +79,6 @@ require ( github.com/panjf2000/ants/v2 v2.12.0 // indirect github.com/quic-go/quic-go v0.59.0 // indirect github.com/tylertreat/BoomFilters v0.0.0-20251117164519-53813c36cc1b // indirect - github.com/yl2chen/cidranger v1.0.2 // indirect gvisor.dev/gvisor v0.0.0-20260408064518-65a410b0d584 // indirect ) @@ -236,7 +235,7 @@ replace github.com/sagernet/sing-vmess => github.com/starifly/sing-vmess v0.2.7- replace github.com/patrickmn/go-cache/v2 => github.com/shtorm-7/go-cache/v2 v2.1.0-extended-1.0.2 -replace github.com/dolonet/mtg-multi => github.com/shtorm-7/mtg-multi v1.8.0-extended-1.0.0 +replace github.com/dolonet/mtg-multi => github.com/shtorm-7/mtg-multi v1.8.0-extended-1.0.1 replace github.com/Diniboy1123/connect-ip-go => github.com/shtorm-7/connect-ip-go v1.0.0-extended-1.0.0 diff --git a/protocol/mtproxy/inbound.go b/protocol/mtproxy/inbound.go index 48f829a5..fd7f5d60 100644 --- a/protocol/mtproxy/inbound.go +++ b/protocol/mtproxy/inbound.go @@ -6,7 +6,6 @@ import ( "github.com/dolonet/mtg-multi/antireplay" "github.com/dolonet/mtg-multi/events" - "github.com/dolonet/mtg-multi/ipblocklist" "github.com/dolonet/mtg-multi/mtglib" "github.com/sagernet/sing-box/adapter" "github.com/sagernet/sing-box/adapter/inbound" @@ -59,8 +58,6 @@ func NewInbound(ctx context.Context, router adapter.Router, logger log.ContextLo Logger: mtgLogger, Network: NewNetworkAdapter(ctx, NewDialer(inbound.newConnection)), AntiReplayCache: antireplay.NewNoop(), - IPBlocklist: ipblocklist.NewNoop(), - IPAllowlist: ipblocklist.NewNoop(), EventStream: events.NewNoopStream(), Secrets: secrets,