summaryrefslogtreecommitdiff
path: root/servers.c
diff options
context:
space:
mode:
Diffstat (limited to 'servers.c')
-rw-r--r--servers.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/servers.c b/servers.c
index f46eaae..22e431d 100644
--- a/servers.c
+++ b/servers.c
@@ -1,7 +1,7 @@
#include "servers.h"
#include "conf.h"
-static GSList *servers = NULL;
+GSList *servers = NULL;
gboolean server_add(const gchar *host, const guint16 port) {
struct server *server = g_new0(struct server, 1);
@@ -35,6 +35,7 @@ void servers_init() {
gsize length;
gchar **s = conf_get_string_list("audist", "servers", &length);
for(int i = 0; i < length; i++) {
+ server_add(s[i], 0);
g_debug(" server %d: %s", i, s[i]);
}
}