From 8c61f57cd3d654fa5d2bcb4d2d1d727f8d1d4d80 Mon Sep 17 00:00:00 2001 From: Sven Slootweg Date: Sun, 29 Sep 2013 18:00:42 +0200 Subject: [PATCH] Read binding IP and port from configuration --- core/config.py | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/core/config.py b/core/config.py index c94dd25..adc1a81 100644 --- a/core/config.py +++ b/core/config.py @@ -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)