From: Calin Crisan Date: Mon, 19 Oct 2015 11:26:44 +0000 (+0300) Subject: motion_control_localhost setting fix X-Git-Url: http://www.vanbest.org/gitweb/?a=commitdiff_plain;h=c6b37a52d5cd7f9e492c88c43222ea912f3c11ec;p=motioneye-debian motion_control_localhost setting fix --- 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