[GH-ISSUE #529] --dns 参数不可使用 #431

Closed
opened 2026-02-27 23:16:53 +03:00 by kerem · 2 comments
Owner

Originally created by @InoryS on GitHub (Mar 28, 2023).
Original GitHub issue: https://github.com/snail007/goproxy/issues/529

Expected Behavior

支持 --dns 参数 ./proxy http --dns 8.8.8.8 -t tcp -p :80,:443 -T tcp --intelligent=parent --jumper socks5://foo:bar@example.com:42321

Current Behavior

文档中 HTTP(S)反向代理 建议 proxy代理最好指定--dns 8.8.8.8参数。实际上 --dns 不可以使用:

./proxy http --dns 8.8.8.8 -t tcp -p :80,:443 -T tcp --intelligent=parent --jumper socks5://foo:bar@example.com:42321
proxy/main.go:86 FATAL err : unknown long flag '--dns

Steps to Reproduce

1.下载 goproxy

  1. ./proxy http --dns 8.8.8.8 -t tcp -p :80,:443 -T tcp --intelligent=parent --jumper socks5://foo:bar@example.com:42321
    1.proxy/main.go:86 FATAL err : unknown long flag '--dns

Context (Environment)

  1. proxy version is : v13.0
  2. full command is : ./proxy http --dns 8.8.8.8 -t tcp -p :80,:443 -T tcp --intelligent=parent --jumper socks5://foo:bar@example.com:42321
  3. system is : Centos 7
  4. full log is: proxy/main.go:86 FATAL err : unknown long flag '--dns
Originally created by @InoryS on GitHub (Mar 28, 2023). Original GitHub issue: https://github.com/snail007/goproxy/issues/529 <!--- Provide a general summary of the issue in the Title above --> ## Expected Behavior <!--- Tell us what should happen --> 支持 --dns 参数 `./proxy http --dns 8.8.8.8 -t tcp -p :80,:443 -T tcp --intelligent=parent --jumper socks5://foo:bar@example.com:42321` ## Current Behavior <!--- Tell us what happens instead of the expected behavior --> 文档中 [HTTP(S)反向代理](https://snail007.host900.com/goproxy/manual/zh/#/?id=_19-https%e5%8f%8d%e5%90%91%e4%bb%a3%e7%90%86) 建议 `proxy代理最好指定--dns 8.8.8.8参数`。实际上 --dns 不可以使用: ``` ./proxy http --dns 8.8.8.8 -t tcp -p :80,:443 -T tcp --intelligent=parent --jumper socks5://foo:bar@example.com:42321 proxy/main.go:86 FATAL err : unknown long flag '--dns ``` <!---## Possible Solution --> <!--- Not obligatory, but suggest a fix/reason for the bug, --> ## Steps to Reproduce <!--- Provide a link to a live example, or an unambiguous set of steps to --> <!--- reproduce this bug. Include code to reproduce, if relevant --> 1.下载 goproxy 1. `./proxy http --dns 8.8.8.8 -t tcp -p :80,:443 -T tcp --intelligent=parent --jumper socks5://foo:bar@example.com:42321` 1.`proxy/main.go:86 FATAL err : unknown long flag '--dns` ## Context (Environment) <!--- How has this issue affected you? What are you trying to accomplish? --> <!--- Providing context helps us come up with a solution that is most useful in the real world --> 1. proxy version is : v13.0 1. full command is : `./proxy http --dns 8.8.8.8 -t tcp -p :80,:443 -T tcp --intelligent=parent --jumper socks5://foo:bar@example.com:42321` 1. system is : Centos 7 1. full log is: `proxy/main.go:86 FATAL err : unknown long flag '--dns` <!--- Provide a general summary of the issue in the Title above --> <!--- ## Detailed Description --> <!--- Provide a detailed description of the change or addition you are proposing --> <!-- ## Possible Implementation --> <!--- Not obligatory, but suggest an idea for implementing addition or change -->
kerem closed this issue 2026-02-27 23:16:53 +03:00
Author
Owner

@snail007 commented on GitHub (Mar 29, 2023):

--dns-address not --dns

<!-- gh-comment-id:1487784386 --> @snail007 commented on GitHub (Mar 29, 2023): `--dns-address` not `--dns`
Author
Owner

@InoryS commented on GitHub (Mar 29, 2023):

github.com/snail007/goproxy@d3a2cf15c0

<!-- gh-comment-id:1487801301 --> @InoryS commented on GitHub (Mar 29, 2023): https://github.com/snail007/goproxy/commit/d3a2cf15c03dfe17f4ed2583c3714de951d4e6d5
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/goproxy#431
No description provided.