1
0
mirror of https://github.com/nitezs/sub2sing-box.git synced 2024-12-24 11:54:41 -05:00
sub2sing-box/parser/parsers_map.go
nite07 688f8287af 重构部分代码
fix: vless ws 配置缺少 path 字段
2024-03-21 00:02:38 +08:00

16 lines
386 B
Go

package parser
import (
"sub2sing-box/model"
)
var ParserMap map[string]func(string) (model.Outbound, error) = map[string]func(string) (model.Outbound, error){
"ss://": ParseShadowsocks,
"vmess://": ParseVmess,
"trojan://": ParseTrojan,
"vless://": ParseVless,
"hysteria://": ParseHysteria,
"hy2://": ParseHysteria2,
"hysteria2://": ParseHysteria2,
}