Read binding IP and port from configuration

develop
Sven Slootweg 11 years ago
parent ddf9434380
commit 8c61f57cd3

@ -56,6 +56,16 @@ class ConfigurationReader(object):
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)
def config_nodes(self, configdata):

Loading…
Cancel
Save