]> www.vanbest.org Git - motioneye-debian/commitdiff
motion_control_localhost setting fix
authorCalin Crisan <ccrisan@gmail.com>
Mon, 19 Oct 2015 11:26:44 +0000 (14:26 +0300)
committerCalin Crisan <ccrisan@gmail.com>
Mon, 19 Oct 2015 15:31:29 +0000 (18:31 +0300)
motioneye/config.py
motioneye/settings.py

index 45e767d0fd25da4c2b03c590e30bb3d98efecbe6..2dc62b894742440ee233cf5f37858429e1750767 100644 (file)
@@ -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):
index 1c02a4a6d75c5792a48724ba8f307d418b740eee..8f593a442259a9805342e128bafa24f1f8a96763 100644 (file)
@@ -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