mirror of
https://github.com/snail007/goproxy.git
synced 2026-04-27 00:15:51 +03:00
[GH-ISSUE #92] 外部API认证支持仅认证IP和target #50
Labels
No labels
TODO
bug
duplicate
enhancement
good first issue
help wanted
helpful
invalid
need-confirm
pull-request
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/goproxy#50
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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
希望作者大大能考虑在下一个版本支持这个功能~~~
感谢辛苦付出!!!
@snail007 commented on GitHub (Jun 11, 2018):
你的需求比较定制化,建议维护自己的分支
@LunacyZeus commented on GitHub (Jun 17, 2018):
okay 感谢回复