Commit graph

34 commits

Author SHA1 Message Date
onin
8c11d5b4cd username-params: gate mapping + no default override; HTTP 400 on unresolved mapping; dedup; docs/tests
- Behavior: do not override when username has no recognized keys; fall back to escaper proxy_addr.
  - HTTP error: username-derived NXDOMAIN returns 400 Bad Request with “Proxy targeting didn't find a
  match” (CONNECT and Forward); other failures keep existing mappings (e.g., 530).
  - Config/compute: allow empty separator; rename suffix_for_host → to_fqdn; add
  username_has_known_key(..); keep global_label for compatibility but stop using it.
  - Server config: use UsernameParamsToEscaperConfig directly; call
  UsernameParamsToEscaperConfig::parse(..).
  - Integration: HTTP writer gates mapping with username_has_known_key(..); 400 on invalid params; no
  override otherwise. SOCKS negotiation gates similarly; uses Option<UpstreamAddr>; standard error on
  invalid params.
  - Escapers: divert_tcp ignores per-connection override (internal/transparent); remove unnecessary clones;
  dedup connect logic via local connect_via_peer(..) helpers (no cross-module macro).
  - Logging: restore SOCKS log_client_shutdown() parity with HTTP connect.
  - Docs/examples: EN/ZH guides note “no recognized keys → use proxy_addr”; remove global_label from
  examples.
  - Tests: update for to_fqdn; remove “no params → global” test; adjust unknown-keys case; fix duplicate
  #[test].
  - Cleanup: remove unused imports and small style nits.
2025-09-09 11:42:18 +08:00
onin
05dace1a32 Username params to escaper address
example docs improvement
proxy_addr clarification
http proxy port consistency
Added floating keys
Add username-params-to-escaper-address
2025-09-09 11:42:18 +08:00
Zhang Jingqiang
abf5e8c85d update user guide
Some checks failed
Linux-CI / Build (push) Has been cancelled
Linux-CI / Clippy (push) Has been cancelled
CodeQL Advanced / Analyze (python) (push) Has been cancelled
CodeQL Advanced / Analyze (rust) (push) Has been cancelled
CrossCompiling / Build (push) Has been cancelled
CodeCoverage / g3statsd test (push) Has been cancelled
CodeQL Advanced / Analyze (actions) (push) Has been cancelled
CodeQL Advanced / Analyze (java-kotlin) (push) Has been cancelled
CodeCoverage / g3bench test (push) Has been cancelled
Sphinx-Doc / build (g3tiles) (push) Has been cancelled
CodeCoverage / lib unit test (push) Has been cancelled
CodeCoverage / g3mkcert test (push) Has been cancelled
CodeCoverage / g3keymess test (push) Has been cancelled
CodeCoverage / g3proxy test (push) Has been cancelled
Linux-CI / Build vendored (push) Has been cancelled
Linux-CI / Build with OpenSSL Async Job (push) Has been cancelled
MacOS-CI / Build (push) Has been cancelled
MacOS-CI / Build vendored (push) Has been cancelled
Sphinx-Doc / build (g3keymess) (push) Has been cancelled
Sphinx-Doc / build (g3proxy) (push) Has been cancelled
Sphinx-Doc / build (g3statsd) (push) Has been cancelled
StaticLinking / musl (push) Has been cancelled
StaticLinking / msvc (push) Has been cancelled
Windows-CI / Build (push) Has been cancelled
Windows-CI / Build vendored (push) Has been cancelled
2025-08-25 13:00:01 +08:00
Zhang Jingqiang
cf6b0f823d update doc
Some checks failed
CrossCompiling / Build (push) Has been cancelled
CodeCoverage / lib unit test (push) Has been cancelled
CodeCoverage / g3mkcert test (push) Has been cancelled
CodeCoverage / g3keymess test (push) Has been cancelled
CodeCoverage / g3proxy test (push) Has been cancelled
CodeCoverage / g3bench test (push) Has been cancelled
CodeCoverage / g3statsd test (push) Has been cancelled
CodeQL Advanced / Analyze (actions) (push) Has been cancelled
CodeQL Advanced / Analyze (java-kotlin) (push) Has been cancelled
CodeQL Advanced / Analyze (python) (push) Has been cancelled
CodeQL Advanced / Analyze (rust) (push) Has been cancelled
Linux-CI / Build (push) Has been cancelled
Linux-CI / Clippy (push) Has been cancelled
Linux-CI / Build vendored (push) Has been cancelled
Linux-CI / Build with OpenSSL Async Job (push) Has been cancelled
MacOS-CI / Build (push) Has been cancelled
MacOS-CI / Build vendored (push) Has been cancelled
StaticLinking / musl (push) Has been cancelled
StaticLinking / msvc (push) Has been cancelled
Windows-CI / Build (push) Has been cancelled
Windows-CI / Build vendored (push) Has been cancelled
2025-07-11 19:42:17 +08:00
Zhang Jingqiang
579b236415 g3proxy: update doc 2025-02-12 14:37:20 +08:00
Zhang Jingqiang
5d648ea454
move sphinx together and support to upload to Read the Docs (#411) 2024-12-03 12:51:57 +08:00
Zhang Jingqiang
aa04d5d345 format makrdown doc 2024-08-25 19:21:10 +08:00
Zhang Jingqiang
8b536922cf update doc 2024-06-11 17:30:00 +08:00
Zhang Jingqiang
44625cd02b update doc 2024-04-12 17:43:46 +08:00
Zhang Jingqiang
bff37970c7 update doc 2024-02-15 21:18:41 +08:00
Jiantao Fu
cb327a23b5 fix wrong cfg path in g3proxy/UserGuide.zh_CN.md 2024-02-15 14:57:09 +08:00
Zhang Jingqiang
fb9eeac87f g3proxy version 1.7.34 2024-01-19 11:14:30 +08:00
Zhang Jingqiang
93c1eafa90 g3proxy: update user guide 2023-11-03 18:46:10 +08:00
Zhang Jingqiang
7c6a5d5556 update doc 2023-11-03 17:16:56 +08:00
Zhang Jingqiang
dad25fc893 g3proxy version 1.7.28 2023-10-26 15:23:19 +08:00
Zhang Jingqiang
99fbf29e90 g3proxy: update user guide 2023-10-23 10:58:36 +08:00
Zhang Jingqiang
6d9c8f5936 rename trust-dns to hickory 2023-10-14 14:30:28 +08:00
Zhang Jingqiang
35c8ed308f update doc and packages 2023-09-03 17:34:43 +08:00
Zhang Jingqiang
8bb4be5942 update doc 2023-08-18 18:50:11 +08:00
Zhang Jingqiang
7ad31f665b g3proxy: support PROXY Protocol V2 in PlainTcpPort/PlainTlsPort 2023-07-27 17:54:52 +08:00
Zhang Jingqiang
e6fd2615e6 g3proxy: update doc 2023-07-19 15:04:53 +08:00
Zhang Jingqiang
684da6f748 fix typo 2023-07-18 17:08:50 +08:00
Zhang Jingqiang
0eb7a9fe57 fix doc link 2023-07-18 17:05:53 +08:00
Zhang Jingqiang
2b2e06f39c g3proxy: update doc 2023-07-18 16:54:52 +08:00
Zhang Jingqiang
9cbbcb2868 g3proxy: update doc 2023-07-18 16:50:07 +08:00
Zhang Jingqiang
7f6749b984 update doc 2023-06-13 16:21:55 +08:00
Zhang Jingqiang
8b07f60c64 update doc 2023-06-13 16:19:07 +08:00
Zhang Jingqiang
4708f84897 update doc 2023-06-13 16:17:11 +08:00
Zhang Jingqiang
7dc96390a4 update doc 2023-06-13 16:05:00 +08:00
Zhang Jingqiang
a26b1fe073 update doc 2023-06-04 13:42:41 +08:00
Zhang Jingqiang
40327790f1
g3proxy: update user guide (#10) 2023-04-13 10:03:43 +08:00
zhangjingqiang
2590e6f8c4 update doc 2023-04-04 11:08:40 +08:00
zhangjingqiang
138d07b881 update user guide 2023-04-04 11:07:24 +08:00
zhangjingqiang
caae0c8c03 add user guide 2023-04-04 11:05:51 +08:00