mirror of
https://github.com/MetaCubeX/Clash.Meta.git
synced 2025-04-20 01:00:56 +00:00
get pluginName from pluginInfo
This commit is contained in:
parent
fcdc47ebaa
commit
ad0d601218
1 changed files with 2 additions and 2 deletions
|
@ -409,8 +409,8 @@ func ConvertsV2Ray(buf []byte) ([]map[string]any, error) {
|
|||
}
|
||||
plugin := query.Get("plugin")
|
||||
if strings.Contains(plugin, ";") {
|
||||
pluginInfo, _ := url.ParseQuery(strings.ReplaceAll(plugin, ";", "&"))
|
||||
pluginName := pluginInfo.Get("plugin")
|
||||
pluginInfo, _ := url.ParseQuery("pluginName=" + strings.ReplaceAll(plugin, ";", "&"))
|
||||
pluginName := pluginInfo.Get("pluginName")
|
||||
if strings.Contains(pluginName, "obfs") {
|
||||
ss["plugin"] = "obfs"
|
||||
ss["plugin-opts"] = map[string]any{
|
||||
|
|
Loading…
Add table
Reference in a new issue