Update 4.0.2

This commit is contained in:
yoshiko2
2020-11-16 10:24:40 +08:00
parent 024c703124
commit edfa9c2435
5 changed files with 36 additions and 28 deletions

View File

@@ -50,11 +50,12 @@ class Config:
def proxy(self) -> [str, int, int, str]:
try:
sec = "proxy"
switch = self.conf.get(sec, "switch")
proxy = self.conf.get(sec, "proxy")
timeout = self.conf.getint(sec, "timeout")
retry = self.conf.getint(sec, "retry")
proxytype = self.conf.get(sec, "type")
return proxy, timeout, retry, proxytype
return switch, proxy, timeout, retry, proxytype
except ValueError:
self._exit("common")