Add proxy certificate

This commit is contained in:
Ercsion
2021-01-10 23:38:05 +08:00
parent e22a1f917a
commit 3198925284
3 changed files with 8 additions and 1 deletions

View File

@@ -87,6 +87,9 @@ class Config:
return switch, proxy, timeout, retry, proxytype
except ValueError:
self._exit("common")
def cacert_file(self) -> str:
return self.conf.get('proxy', 'cacert_file')
def media_type(self) -> str:
return self.conf.get('media', 'media_type')
@@ -153,6 +156,8 @@ class Config:
conf.set(sec2, "timeout", "5")
conf.set(sec2, "retry", "3")
conf.set(sec2, "type", "socks5")
conf.set(sec2, "cacert_file", "")
sec3 = "Name_Rule"
conf.add_section(sec3)