From 82d14d2731fa0b30aa68f07d7a40d29cf0e7544f Mon Sep 17 00:00:00 2001 From: inpos Date: Mon, 11 Dec 2017 22:21:28 +0300 Subject: [PATCH] Specify sock ip --- Content.py | 1 + SearcherABC.py | 1 + resources/language/English/strings.xml | 1 + resources/language/Russian/strings.xml | 1 + resources/settings.xml | 1 + 5 files changed, 5 insertions(+) diff --git a/Content.py b/Content.py index 00f37dc..827b263 100644 --- a/Content.py +++ b/Content.py @@ -22,6 +22,7 @@ import abc import sys proxy = int(sys.modules["__main__"].__settings__.getSetting("cl_proxy")) if proxy == 1: + socks_ip = sys.modules["__main__"].__settings__.getSetting("socks_ip") import socket from resources import socks socks.setdefaultproxy(socks.PROXY_TYPE_SOCKS5, "127.0.0.1", 9050) diff --git a/SearcherABC.py b/SearcherABC.py index ac18697..d3a9a8f 100644 --- a/SearcherABC.py +++ b/SearcherABC.py @@ -29,6 +29,7 @@ import sys proxy = int(sys.modules["__main__"].__settings__.getSetting("proxy")) if proxy == 2: + socks_ip = sys.modules["__main__"].__settings__.getSetting("socks_ip") from resources import socks socks.setdefaultproxy(socks.PROXY_TYPE_SOCKS5, "127.0.0.1", 9050) socket.socket = socks.socksocket diff --git a/resources/language/English/strings.xml b/resources/language/English/strings.xml index 18ac13a..b2ea4f8 100644 --- a/resources/language/English/strings.xml +++ b/resources/language/English/strings.xml @@ -46,6 +46,7 @@ Torrent2HTTP (libtorrent via http) Proxy for Search Proxy for Content Lists + SOCKS-proxy IP None Anti-zapret Tor diff --git a/resources/language/Russian/strings.xml b/resources/language/Russian/strings.xml index 40acb6f..b612cf3 100644 --- a/resources/language/Russian/strings.xml +++ b/resources/language/Russian/strings.xml @@ -46,6 +46,7 @@ Torrent2HTTP (libtorrent по http) Прокси для поиска Прокси для списков медиа + IP SOCKS-прокси Не использовать Anti-zapret Tor diff --git a/resources/settings.xml b/resources/settings.xml index f480bb7..46f30b2 100644 --- a/resources/settings.xml +++ b/resources/settings.xml @@ -14,6 +14,7 @@ +