[GH-ISSUE #92] 外部API认证支持仅认证IP和target #50

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

Originally created by @LunacyZeus on GitHub (Jun 2, 2018).
Original GitHub issue: https://github.com/snail007/goproxy/issues/92

先说下问题:
这边我这里是使用程序为公司的爬虫代理池提供服务,貌似当前的外部认证API是需要提供Proxy-Authorization字段才能继续访问.........我这里客户端有的不支持设置这个字段
我看了structs.go这个文件的第460行,发现如果用户名和密码不存在就不会通过api请求验证
我这里通过修改structs.go文件让代理可以仅验证IP和target

希望作者大大能考虑在下一个版本支持这个功能~~~
感谢辛苦付出!!!

Originally created by @LunacyZeus on GitHub (Jun 2, 2018). Original GitHub issue: https://github.com/snail007/goproxy/issues/92 先说下问题: 这边我这里是使用程序为公司的爬虫代理池提供服务,貌似当前的外部认证API是需要提供Proxy-Authorization字段才能继续访问.........我这里客户端有的不支持设置这个字段 我看了structs.go这个文件的第460行,发现如果用户名和密码不存在就不会通过api请求验证 我这里通过修改structs.go文件让代理可以仅验证IP和target 希望作者大大能考虑在下一个版本支持这个功能~~~ 感谢辛苦付出!!!
kerem closed this issue 2026-02-27 23:15:13 +03:00
Author
Owner

@snail007 commented on GitHub (Jun 11, 2018):

你的需求比较定制化,建议维护自己的分支

<!-- gh-comment-id:396230962 --> @snail007 commented on GitHub (Jun 11, 2018): 你的需求比较定制化,建议维护自己的分支
Author
Owner

@LunacyZeus commented on GitHub (Jun 17, 2018):

okay 感谢回复

<!-- gh-comment-id:397858852 --> @LunacyZeus commented on GitHub (Jun 17, 2018): okay 感谢回复
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#50
No description provided.