Add back urltest outbound

This commit is contained in:
世界
2022-09-15 15:22:08 +08:00
parent 4d24cf5ec4
commit a5402ffb69
16 changed files with 434 additions and 45 deletions

View File

@@ -4,6 +4,7 @@ import (
"context"
"net"
"github.com/sagernet/sing-box/common/urltest"
N "github.com/sagernet/sing/common/network"
)
@@ -12,6 +13,7 @@ type ClashServer interface {
Mode() string
StoreSelected() bool
CacheFile() ClashCacheFile
HistoryStorage() *urltest.HistoryStorage
RoutedConnection(ctx context.Context, conn net.Conn, metadata InboundContext, matchedRule Rule) (net.Conn, Tracker)
RoutedPacketConnection(ctx context.Context, conn N.PacketConn, metadata InboundContext, matchedRule Rule) (N.PacketConn, Tracker)
}