diff options
Diffstat (limited to 'servers.c')
-rw-r--r-- | servers.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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]); } } |