-
-
Notifications
You must be signed in to change notification settings - Fork 5.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Security: Enable CIDR for allow/deny play/publish #1753
Conversation
This would be very useful for us, any chance this could be merged? |
Thanks for your PR. 👍 I think it's very good to support CIDR for security, and the utest is in this PR which is very nice. However, I need more time to think about it. Please keep this PR here and others could pick it to their repository and test it. |
Hi @winlinvip , there was another change that didn't reach this PR, it's this commit: https://github.com/mycujoo/srs/commit/6a29f5984e2b2120d5a63ac89514a6719f95aa8d Unfortunately I don't have access to the repository anymore so I can't update the PR with this commit. It's missing tests, but the functionality is supposed to make the This is trying to copy nginx's behaviour more or less. I would recommend if you plan to merge or improve this to consider adding that commit as well :) |
Really appreciate this patch, thanks a lot. I notice there is some codes copied from blog, but the LICENSE is not clear, so please rewrite these functions. Please check the code from Go or Nginx, both LICENSE are ok. 😄
|
@macabu @matclayton I have reviewed this PR and some codes are delivered under unspecified license, copied from the blog website, so @duiniuluantanqin fixed this and file a new PR #2914 which is based on this one (the commits are kept and new commits had been added). Moved to #2914 and this PR will be closed. Appreciated for all you 👍 |
Previously you could only specify static IPs to the security config, this PR enables specifying ranges of IPs in a network.
Tests added and passing.
Fixes #1190
Thanks