clash-api: Add Clash.Meta APIs

This commit is contained in:
世界
2023-04-11 16:43:45 +08:00
parent 750f87bb0a
commit 542612129d
7 changed files with 250 additions and 5 deletions

View File

@@ -35,6 +35,11 @@ type OutboundGroup interface {
All() []string
}
type URLTestGroup interface {
OutboundGroup
URLTest(ctx context.Context, url string) (map[string]uint16, error)
}
func OutboundTag(detour Outbound) string {
if group, isGroup := detour.(OutboundGroup); isGroup {
return group.Now()