Skip to content

Commit 662bdc0

Browse files
committed
change default checker
1 parent 2e5db55 commit 662bdc0

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

checkers/d3d_info_checker.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
class D3DInfoChecker(BaseChecker):
77
def __init__(self, timeout=None):
8-
super(D3DInfoChecker, self).__init__("https://pikagraphs.d3d.info/OK/", timeout=timeout)
8+
super(D3DInfoChecker, self).__init__("https://test.d3d.info/ok.html", timeout=timeout)
99

1010
async def _check(self, response: aiohttp.ClientResponse, checker_result: CheckerResult):
11-
return (await response.text()) == 'OK'
11+
return (await response.text()).strip().lower() == 'ok'

proxy_py/_settings.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
# from checkers.d3d_info_checker import D3DInfoChecker
2-
from checkers.ipinfo_io_checker import IPInfoIOChecker
1+
from checkers.d3d_info_checker import D3DInfoChecker
2+
# from checkers.ipinfo_io_checker import IPInfoIOChecker
33

44

55
# enable to get more information in logs
@@ -65,8 +65,8 @@
6565
MINIMUM_NUMBER_OF_CHECKERS_PER_PROXY = 1
6666

6767
PROXY_CHECKERS = [
68-
IPInfoIOChecker,
69-
# D3DInfoChecker,
68+
# IPInfoIOChecker,
69+
D3DInfoChecker,
7070
]
7171

7272
"""

0 commit comments

Comments
 (0)