From f65cb2ca06c38a371d006263e9dd82fb4a5b997a Mon Sep 17 00:00:00 2001 From: Alireza Ahmadi Date: Sat, 7 Jun 2025 01:44:31 +0200 Subject: [PATCH] fix http-opts path in clash sub --- sub/clashService.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sub/clashService.go b/sub/clashService.go index 40773db..d97a196 100644 --- a/sub/clashService.go +++ b/sub/clashService.go @@ -245,7 +245,7 @@ func (s *ClashService) ConvertToClashMeta(outbounds *[]map[string]interface{}) ( proxy["h2-opts"] = httpOpts } else { proxy["network"] = "http" - proxy["http-opts"] = httpOpts + proxy["http-opts"] = map[string]interface{}{"path": []interface{}{httpOpts["path"]}, "host": httpOpts["host"]} } case "ws", "httpupgrade": proxy["network"] = "ws"