feat: configurable tester anonymity-check URL (TEST_ANONYMOUS_URL) (#109) - #234
Merged
Conversation
…MOUS_URL - setting: add TEST_ANONYMOUS_URL (default https://httpbin.org/ip) - tester: use TEST_ANONYMOUS_URL instead of the hardcoded httpbin.org endpoint so users can self-host httpbin and avoid public rate limits - README: document TEST_ANONYMOUS_URL and TEST_ANONYMOUS Closes #109
Germey
force-pushed
the
feature/configurable-test-url
branch
from
July 4, 2026 08:48
8eb4fc1 to
72d32ef
Compare
Closed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
背景
Issue 收敛计划 Phase 4c(增强:可配置匿名检测地址),对应 #109。
问题
tester 里
url = 'https://httpbin.org/ip'是硬编码的。#109 希望能自建 httpbin 提高测试速度;此外公共 httpbin.org 限流/异常也是 tester 报错(如 #208 的LineTooLong/ContentTypeError)的一个诱因。改动
setting.py:新增TEST_ANONYMOUS_URL(默认https://httpbin.org/ip)。processors/tester.py:匿名/出口 IP 检测改用TEST_ANONYMOUS_URL。README.md:补充TEST_ANONYMOUS_URL(及TEST_ANONYMOUS)说明。用法(配合 #109 的自建 httpbin)
说明
{"origin": "1.2.3.4"})。setting.py/tester.py编译通过。关联 issue