mirror of
https://github.com/bestnite/sub2sing-box.git
synced 2025-10-26 09:11:01 +00:00
整理代码
This commit is contained in:
@@ -1,15 +1,16 @@
|
||||
package parser
|
||||
|
||||
import (
|
||||
"sub2sing-box/constant"
|
||||
"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,
|
||||
constant.ShadowsocksPrefix: ParseShadowsocks,
|
||||
constant.VMessPrefix: ParseVmess,
|
||||
constant.TrojanPrefix: ParseTrojan,
|
||||
constant.VLESSPrefix: ParseVless,
|
||||
constant.HysteriaPrefix: ParseHysteria,
|
||||
constant.Hysteria2Prefix1: ParseHysteria2,
|
||||
constant.Hysteria2Prefix2: ParseHysteria2,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user