From a49a00a25f5c0a13d543c767cb77efbd61ddfe5d Mon Sep 17 00:00:00 2001
From: Ruud <ruud@crashdummy.nl>
Date: Thu, 14 Feb 2013 23:01:34 +0100
Subject: [PATCH] Host to 0.0.0.0

---
 couchpotato/runner.py | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/couchpotato/runner.py b/couchpotato/runner.py
index 37152582..66a524cc 100644
--- a/couchpotato/runner.py
+++ b/couchpotato/runner.py
@@ -209,11 +209,12 @@ def runCouchPotato(options, base_path, args, data_dir = None, log_dir = None, En
 
     # Basic config
     app.secret_key = api_key
+    host = Env.setting('host', default = '0.0.0.0')
     # app.debug = development
     config = {
         'use_reloader': reloader,
         'port': tryInt(Env.setting('port', default = 5000)),
-        'host': Env.setting('host', default = ''),
+        'host': host if host and len(host) > 0 else '0.0.0.0',
         'ssl_cert': Env.setting('ssl_cert', default = None),
         'ssl_key': Env.setting('ssl_key', default = None),
     }
-- 
GitLab