diff options
-rw-r--r-- | command_service.c | 4 |
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); |