From 61249cc74b8f70ceac7012b83e1f7b6c73371bb2 Mon Sep 17 00:00:00 2001 From: Johnshall <71166067+Johnshall@users.noreply.github.com> Date: Fri, 14 Oct 2022 01:09:56 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=A7=A9=20Remove=20head=20and=20foot=20fro?= =?UTF-8?q?m=20sr=5Fad=5Fonly?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- factory/build_confs.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/factory/build_confs.py b/factory/build_confs.py index c1e9270..f296a0d 100644 --- a/factory/build_confs.py +++ b/factory/build_confs.py @@ -73,10 +73,9 @@ values['gfwlist'] = getRulesStringFromFile('resultant/gfw.list', 'Proxy') \ for conf_name in confs_names: file_template = open('template/'+conf_name+'.txt', 'r', encoding='utf-8') template = file_template.read() - - template = template + str_foot + if conf_name != 'sr_ad_only': - template = template + template = str_head + template + str_foot file_output = open('../'+conf_name+'.conf', 'w', encoding='utf-8')