Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Video AG Infrastruktur
website
Commits
00bc63c7
Commit
00bc63c7
authored
Apr 14, 2017
by
Julian Rother
Browse files
Fixed config usage
parent
ccda66d1
Changes
1
Hide whitespace changes
Inline
Side-by-side
server.py
View file @
00bc63c7
...
...
@@ -146,7 +146,7 @@ def checkperm(perms, username=None, password=None):
if
'X-Real-IP'
not
in
request
.
headers
:
continue
ip
=
ip_address
(
request
.
headers
[
'X-Real-IP'
])
for
net
in
RWTH_IP_RANGES
:
for
net
in
config
[
'
RWTH_IP_RANGES
'
]
:
if
ip
in
ip_network
(
net
):
return
True
return
False
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment