diff --git a/hiddify-panel/src b/hiddify-panel/src index 186941009..9bc67a361 160000 --- a/hiddify-panel/src +++ b/hiddify-panel/src @@ -1 +1 @@ -Subproject commit 186941009c4a17d3b6528716192e60b7939893e4 +Subproject commit 9bc67a361f869f6f076b58bd46b4181f8b36ddc4 diff --git a/singbox/configs/03_routing.json.j2 b/singbox/configs/03_routing.json.j2 index 09ee1e6b7..067ad003e 100644 --- a/singbox/configs/03_routing.json.j2 +++ b/singbox/configs/03_routing.json.j2 @@ -47,16 +47,16 @@ ] }, + {% if hconfigs['warp_mode'] != 'disable' and hconfigs.get('warp_sites','').split('\n') %} { - "outbound": {% if hconfigs['warp_mode'] == 'disable' %}"freedom"{% else %}"WARP"{% endif %}, - "domain":[ - {% if hconfigs['warp_mode'] != 'disable' %} + "outbound": "WARP", + "domain":[ {%for d in hconfigs.get('warp_sites','').split('\n')%} "{{d.strip()}}", {% endfor %} - {% endif %} ] }, + {% endif %} { "outbound": "blackhole", "geoip": ["private"] }