[GH-ISSUE #497] 黑名单域名文件在配置--auth-url不生效 #398

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

Originally created by @mjh-jason on GitHub (Sep 3, 2022).
Original GitHub issue: https://github.com/snail007/goproxy/issues/497

Expected Behavior

1.预期是根据黑名单文件内的内容进行拦截

Possible Solution

1.配置了auth-url后,黑名单域名文件不生效

Steps to Reproduce

51J@`$XTLFEWOHN8 OSX9QG

Context (Environment)

  1. proxy version is : 最新的商业版
  2. full command is : proxy @configfile.txt
  3. system is : centos7

Detailed Description

1.黑名单域名文件不生效,不知道是不是我哪里配错的问题,望指教,谢谢

Possible Implementation

Originally created by @mjh-jason on GitHub (Sep 3, 2022). Original GitHub issue: https://github.com/snail007/goproxy/issues/497 <!--- Provide a general summary of the issue in the Title above --> ## Expected Behavior <!--- Tell us what should happen --> 1.预期是根据黑名单文件内的内容进行拦截 ## Possible Solution <!--- Not obligatory, but suggest a fix/reason for the bug, --> 1.配置了auth-url后,黑名单域名文件不生效 ## 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 --> ![51J@`$XTLFEWOHN8 OSX9QG](https://user-images.githubusercontent.com/63330349/188251041-53e07b3b-fa29-4fc9-a952-09dc3929f838.png) ## 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 : 最新的商业版 1. full command is : proxy @configfile.txt 1. system is : centos7 ## Detailed Description 1.黑名单域名文件不生效,不知道是不是我哪里配错的问题,望指教,谢谢 ## Possible Implementation <!--- Not obligatory, but suggest an idea for implementing addition or change -->
kerem closed this issue 2026-02-27 23:16:46 +03:00
Author
Owner

@snail007 commented on GitHub (Sep 3, 2022):

socks5代理协议下,客户端可以决定是否使用代理解析域名,如果客户端先把域名在客户端本地解析成IP,再让代理连接IP,你设置的黑名单里面却写的是域名,这时候根本不能匹配上,也就不能拦截。

<!-- gh-comment-id:1236038231 --> @snail007 commented on GitHub (Sep 3, 2022): socks5代理协议下,客户端可以决定是否使用代理解析域名,如果客户端先把域名在客户端本地解析成IP,再让代理连接IP,你设置的黑名单里面却写的是域名,这时候根本不能匹配上,也就不能拦截。
Author
Owner

@mjh-jason commented on GitHub (Sep 3, 2022):

非常感谢作者的回复。
HTTP代理协议下也不支持是吗?我这边测试了发现HTTP也拦截不了。
有办法限制客户端使用代理IP解析域名吗?
如果域名套了CDN是不是没办法拦截?

<!-- gh-comment-id:1236038834 --> @mjh-jason commented on GitHub (Sep 3, 2022): 非常感谢作者的回复。 HTTP代理协议下也不支持是吗?我这边测试了发现HTTP也拦截不了。 有办法限制客户端使用代理IP解析域名吗? 如果域名套了CDN是不是没办法拦截?
Author
Owner

@snail007 commented on GitHub (Sep 3, 2022):

是否解析域名后让代理连接ip,是客户端单方面行为,代理软件不能控制。

<!-- gh-comment-id:1236047150 --> @snail007 commented on GitHub (Sep 3, 2022): 是否解析域名后让代理连接ip,是客户端单方面行为,代理软件不能控制。
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#398
No description provided.