fix http-opts path in clash sub

This commit is contained in:
Alireza Ahmadi
2025-06-07 01:44:31 +02:00
parent 36938aee41
commit f65cb2ca06
+1 -1
View File
@@ -245,7 +245,7 @@ func (s *ClashService) ConvertToClashMeta(outbounds *[]map[string]interface{}) (
proxy["h2-opts"] = httpOpts proxy["h2-opts"] = httpOpts
} else { } else {
proxy["network"] = "http" proxy["network"] = "http"
proxy["http-opts"] = httpOpts proxy["http-opts"] = map[string]interface{}{"path": []interface{}{httpOpts["path"]}, "host": httpOpts["host"]}
} }
case "ws", "httpupgrade": case "ws", "httpupgrade":
proxy["network"] = "ws" proxy["network"] = "ws"