Force port as int
This commit is contained in:
1 parent
224d1527e1
commit
c51c391ced
1 file changed
+2
-2
@@ -2,7 +2,7 @@ from argparse import ArgumentParser
|
|||||||
from couchpotato import web
|
from couchpotato import web
|
||||||
from couchpotato.api import api
|
from couchpotato.api import api
|
||||||
from couchpotato.core.event import fireEventAsync
|
from couchpotato.core.event import fireEventAsync
|
||||||
from couchpotato.core.helpers.variable import getDataDir
|
from couchpotato.core.helpers.variable import getDataDir, tryInt
|
||||||
from daemon import createDaemon
|
from daemon import createDaemon
|
||||||
from logging import handlers
|
from logging import handlers
|
||||||
from werkzeug.contrib.cache import FileSystemCache
|
from werkzeug.contrib.cache import FileSystemCache
|
||||||
@@ -153,7 +153,7 @@ def runCouchPotato(options, base_path, args):
|
|||||||
config = {
|
config = {
|
||||||
'use_reloader': reloader,
|
'use_reloader': reloader,
|
||||||
'host': Env.setting('host', default = '0.0.0.0'),
|
'host': Env.setting('host', default = '0.0.0.0'),
|
||||||
'port': Env.setting('port', default = 5000)
|
'port': tryInt(Env.setting('port', default = 5000))
|
||||||
}
|
}
|
||||||
|
|
||||||
# Static path
|
# Static path
|
||||||
|
|||||||
Reference in new issue
Block a user