Skip to content
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

Allow passing trusted subnets #7

Merged
merged 4 commits into from
Aug 24, 2017
Merged

Conversation

chriskuehl
Copy link
Contributor

@chriskuehl chriskuehl commented Aug 24, 2017

Fixes #6

wsgi_mod_rpaf.py Outdated
@@ -23,27 +22,30 @@ def text_to_wsgi(s):
return s


PROXY_IPS_DIRECTIVE = 'RPAFproxy_ips '
def from_apache_config(f, directive='RPAFproxy_ips'):
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

err, this should probably be changed to take a path rather than a file-like object

@chriskuehl chriskuehl force-pushed the allow-passing-trusted-subnets branch from 7e81337 to 7a3f678 Compare August 24, 2017 03:24
@Yelp Yelp deleted a comment from coveralls Aug 24, 2017
Makefile Outdated

.PHONY: tests test
tests: test
test: .venv.touch
test:
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can probably get rid of tests: test while you're at it

.PHONY: clean
clean:
find . -iname '*.pyc' -delete
find . -name '*.pyc' -delete
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

if you don't care about bsd, can do find -name '*.pyc' -delete


```python
import ipaddress

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

probably also have the from wsgi_mod_rpaf ... import here too

@Yelp Yelp deleted a comment from coveralls Aug 24, 2017
@chriskuehl chriskuehl merged commit 7b23398 into master Aug 24, 2017
@asottile asottile deleted the allow-passing-trusted-subnets branch October 5, 2017 05:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants