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
f6578277
Commit
f6578277
authored
Jul 23, 2018
by
Julian Rother
Browse files
Replaced INTERNAL_IP_RANGES by FSMPI_IP_RANGES
parent
8f276af5
Changes
1
Show whitespace changes
Inline
Side-by-side
livestreams.py
View file @
f6578277
...
...
@@ -116,7 +116,7 @@ def streamdrop(id):
@
app
.
route
(
'/internal/streaming/auth/<server>'
,
methods
=
[
'GET'
,
'POST'
])
def
streamauth
(
server
):
internal
=
False
for
net
in
config
.
get
(
'
INTERNAL
_IP_RANGES'
,
[]):
for
net
in
config
.
get
(
'
FSMPI
_IP_RANGES'
,
[]):
if
ip_address
(
request
.
headers
[
'X-Real-IP'
])
in
ip_network
(
net
):
internal
=
True
if
not
internal
:
...
...
Write
Preview
Markdown
is supported
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