summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJon Bergli Heier <snakebite@jvnv.net>2010-09-01 16:47:50 +0200
committerJon Bergli Heier <snakebite@jvnv.net>2010-09-01 16:47:50 +0200
commit476c8bf220d4cc2a68e9a1bba823c78d84f507f7 (patch)
tree0e2443b45d7e59c6732b0706060cd4272173ac52
parentcd6232483bda9a531bed0a1e98ed3197286084ad (diff)
Read command service port from config.
-rw-r--r--command_service.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/command_service.c b/command_service.c
index 74573a6..1169432 100644
--- a/command_service.c
+++ b/command_service.c
@@ -1,5 +1,6 @@
#include "command_service.h"
#include "commands.h"
+#include "conf.h"
#include <gio/gio.h>
#include <string.h>
@@ -45,7 +46,8 @@ gboolean server_start() {
ss = g_threaded_socket_service_new(10);
- if(g_socket_listener_add_inet_port((GSocketListener*)ss, 7681, NULL,
+ if(g_socket_listener_add_inet_port((GSocketListener*)ss,
+ conf_get_int("audist", "command_port"), NULL,
&error) == FALSE) {
g_warning("failed to set port: %s", error->message);
g_error_free(error);