go-ethereum/cmd/geth
cloorc a0cb88e2cf
p2p: add optional SOCKS5 proxy support for outbound peer dials
- Add `UseProxy` field to `p2p.Config` and corresponding `--use-proxy` CLI flag.
- Implement proxy-aware `tcpDialer` (uses `golang.org/x/net/proxy` and attempts context-aware DialContext when supported).
- Wire `UseProxy` through `Server` to the dialer so peer dials can go via SOCKS5 proxy defined by `ALL_PROXY`/`all_proxy`.
- Minor debug `start.sh` for running geth with `--use-proxy`.

Signed-off-by: cloorc <wittcnezh@foxmail.com>
2025-12-03 10:08:23 +08:00
..
testdata cmd/geth: update vcheck testdata, add docs on generating signatures (#32121) 2025-07-11 13:55:18 -06:00
accountcmd.go cmd/geth: remove unlock commandline flag (#30737) 2024-11-15 10:15:15 +01:00
accountcmd_test.go cmd/geth: remove unlock commandline flag (#30737) 2024-11-15 10:15:15 +01:00
attach_test.go all: update license comments and AUTHORS (#31133) 2025-02-05 23:01:17 +01:00
chaincmd.go all: add bpo1 and bpo2 overrides (#32737) 2025-09-25 10:21:41 +02:00
chaincmd_test.go cmd/geth: era-download logic fix (#32081) 2025-06-24 15:12:11 +08:00
config.go common: introduce IsHexHash and use it (#32998) 2025-11-04 21:09:36 +08:00
consolecmd.go internal/flags: remove Merge, it's identical to slices.Concat (#30706) 2024-10-31 19:26:02 +02:00
consolecmd_test.go cmd/utils: allow --networkid to override other config options (#32999) 2025-11-28 15:24:21 +01:00
dbcmd.go core, cmd: removed tablewriter from the dependencies (#33218) 2025-11-24 21:50:48 +08:00
exportcmd_test.go all: simplify tests using t.TempDir() (#30150) 2024-07-15 15:26:58 +02:00
genesis_test.go all: remove TerminalTotalDifficultyPassed (#30609) 2024-10-23 08:26:18 +02:00
logging_test.go .github: run tests with ci.go (#32590) 2025-09-11 20:15:51 +02:00
logtestcmd_active.go all: update license comments and AUTHORS (#31133) 2025-02-05 23:01:17 +01:00
logtestcmd_inactive.go all: update license comments and AUTHORS (#31133) 2025-02-05 23:01:17 +01:00
main.go p2p: add optional SOCKS5 proxy support for outbound peer dials 2025-12-03 10:08:23 +08:00
misccmd.go build, internal, version: break ci.go/version->common dependency (#30638) 2024-10-20 19:28:39 +03:00
run_test.go cmd, les, tests: remove light client code (#28586) 2023-11-23 16:28:26 +02:00
snapshot.go common: introduce IsHexHash and use it (#32998) 2025-11-04 21:09:36 +08:00
verkle.go cmd/geth: skip resolver for zero-commitment verkle children (#33265) 2025-11-25 20:34:58 +08:00
version_check.go cmd: migrate to urfave/cli/v2 (#24751) 2022-06-27 18:22:36 +02:00
version_check_test.go cmd/geth: update vcheck testdata, add docs on generating signatures (#32121) 2025-07-11 13:55:18 -06:00