From 2df90073f6bbdc5d76ac0494b67d569833bebf02 Mon Sep 17 00:00:00 2001 From: Tindy X <49061470+tindy2013@users.noreply.github.com> Date: Thu, 23 Jul 2020 11:14:19 +0800 Subject: [PATCH] Fix example Clash base --- base/base/all_base.tpl | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/base/base/all_base.tpl b/base/base/all_base.tpl index 5fbf558..2204551 100644 --- a/base/base/all_base.tpl +++ b/base/base/all_base.tpl @@ -1,12 +1,12 @@ {% if request.target == "clash" or request.target == "clashr" %} -port: {{ global.clash.http_port }} -socks-port: {{ global.clash.socks_port }} -allow-lan: {{ global.clash.allow_lan }} +port: {{ default(global.clash.http_port, "7890") }} +socks-port: {{ default(global.clash.socks_port, "7891") }} +allow-lan: {{ default(global.clash.allow_lan, "true") }} mode: Rule -log-level: {{ global.clash.log_level }} +log-level: {{ default(global.clash.log_level, "info") }} external-controller: :9090 -{% if request.clash.dns == "1" %} +{% if default(request.clash.dns, "") == "1" %} dns: enabled: true listen: 1053