X-Git-Url: https://jfr.im/git/irc/evilnet/x3.git/blobdiff_plain/ff3b058ac51e9caf5cf1fd310b8a401a97a85582..26d745b2a04a97f84d065085ab371cdff6f627d9:/src/mod-qserver.c diff --git a/src/mod-qserver.c b/src/mod-qserver.c index 451e196..3c719d9 100644 --- a/src/mod-qserver.c +++ b/src/mod-qserver.c @@ -5,7 +5,7 @@ * * srvx is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 2 of the License, or + * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, @@ -183,7 +183,9 @@ qserver_conf_read(void) node = conf_get_data("modules/qserver", RECDB_OBJECT); if (!node) return; - str1 = database_get_data(node, "address", RECDB_QSTRING); + str1 = database_get_data(node, "bind_address", RECDB_QSTRING); + if (!str1) + str1 = database_get_data(node, "address", RECDB_QSTRING); str2 = database_get_data(node, "port", RECDB_QSTRING); if (!str2) return;