From 696b2632e99a4316febfa13c0c1ed7c0ad42bdc4 Mon Sep 17 00:00:00 2001 From: Max Zhao Date: Tue, 4 Aug 2020 00:59:01 +0800 Subject: [PATCH] add `type` section in default setting (fix #288) --- config.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config.py b/config.py index b912477..9c7c7f1 100644 --- a/config.py +++ b/config.py @@ -37,7 +37,6 @@ class Config: timeout = self.conf.getint(sec, "timeout") retry = self.conf.getint(sec, "retry") proxytype = self.conf.get(sec, "type") - return proxy, timeout, retry, proxytype except ValueError: self._exit("common") @@ -88,6 +87,7 @@ class Config: conf.set(sec2, "proxy", "127.0.0.1:1080") conf.set(sec2, "timeout", "10") conf.set(sec2, "retry", "3") + conf.set(sec2, "type", "http") sec3 = "Name_Rule" conf.add_section(sec3)