summaryrefslogtreecommitdiffstats
path: root/src/daemon/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/daemon/main.c')
-rw-r--r--src/daemon/main.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/daemon/main.c b/src/daemon/main.c
index a729f84..302a9ce 100644
--- a/src/daemon/main.c
+++ b/src/daemon/main.c
@@ -33,7 +33,9 @@ int main(int argc, char **argv)
printf("Usurpation daemon version %s starting\n", version);
- net_init(6996); // To do: get port from settings.
+ settings_init();
+ net_init(setting_port()); /* TODO: get port from settings. */
+
/* by default and if running by as a system service, the init system
* needs to keep control of the process and thus only detach if
* requested when ran manually by a user.