From c6b37a52d5cd7f9e492c88c43222ea912f3c11ec Mon Sep 17 00:00:00 2001 From: Calin Crisan Date: Mon, 19 Oct 2015 14:26:44 +0300 Subject: [PATCH] motion_control_localhost setting fix --- motioneye/config.py | 4 ++-- motioneye/settings.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/motioneye/config.py b/motioneye/config.py index 45e767d..2dc62b8 100644 --- a/motioneye/config.py +++ b/motioneye/config.py @@ -1579,12 +1579,12 @@ def _set_default_motion(data, old_motion): if old_motion: data.setdefault('control_port', settings.MOTION_CONTROL_PORT) data.setdefault('control_html_output', True) - data.setdefault('control_localhost', settings.MOTION_CONTROL_LISTEN_LOCALHOST) + data.setdefault('control_localhost', settings.MOTION_CONTROL_LOCALHOST) else: data.setdefault('webcontrol_port', settings.MOTION_CONTROL_PORT) data.setdefault('webcontrol_html_output', True) - data.setdefault('webcontrol_localhost', settings.MOTION_CONTROL_LISTEN_LOCALHOST) + data.setdefault('webcontrol_localhost', settings.MOTION_CONTROL_LOCALHOST) def _set_default_motion_camera(camera_id, data): diff --git a/motioneye/settings.py b/motioneye/settings.py index 1c02a4a..8f593a4 100644 --- a/motioneye/settings.py +++ b/motioneye/settings.py @@ -58,7 +58,7 @@ PORT = 8765 # whether motion HTTP control interface listens on # localhost or on all interfaces -MOTION_CONTROL_LISTEN_LOCALHOST = True +MOTION_CONTROL_LOCALHOST = True # the TCP port that motion HTTP control interface listens on MOTION_CONTROL_PORT = 7999 -- 2.39.5