Add socks proxy support
This commit is contained in:
@@ -26,14 +26,15 @@ class Config:
|
||||
def soft_link(self) -> bool:
|
||||
return self.conf.getboolean("common", "soft_link")
|
||||
|
||||
def proxy(self) -> [str, int, int]:
|
||||
def proxy(self) -> [str, int, int, str]:
|
||||
try:
|
||||
sec = "proxy"
|
||||
proxy = self.conf.get(sec, "proxy")
|
||||
timeout = self.conf.getint(sec, "timeout")
|
||||
retry = self.conf.getint(sec, "retry")
|
||||
|
||||
return proxy, timeout, retry
|
||||
proxytype = self.conf.get(sec, "type")
|
||||
|
||||
return proxy, timeout, retry, proxytype
|
||||
except ValueError:
|
||||
self._exit("common")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user