Read binding IP and port from configuration

develop
Sven Slootweg 11 years ago
parent ddf9434380
commit 8c61f57cd3

@ -55,6 +55,16 @@ class ConfigurationReader(object):
self.database = configdata['self']['database']
except KeyError, e:
self.database = "node.db"
try:
self.port = configdata['self']['port']
except KeyError, e:
self.port = 3009
try:
self.bound_ip = configdata['self']['ip']
except KeyError, e:
self.bound_ip = "*"
logging.debug("Database location is %s" % self.database)

Loading…
Cancel
Save