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;
if (str) sockcheck_conf.max_cache_age = ParseInterval(str);
str = database_get_data(my_node, "gline_duration", RECDB_QSTRING);
if (str) sockcheck_conf.gline_duration = ParseInterval(str);
- str = database_get_data(my_node, "address", RECDB_QSTRING);
+ str = database_get_data(my_node, "bind_address", RECDB_QSTRING);
+ if (!str) str = database_get_data(my_node, "address", RECDB_QSTRING);
if (!getaddrinfo(str, NULL, NULL, &ai)) {
sockcheck_conf.local_addr_len = ai->ai_addrlen;
sockcheck_conf.local_addr = calloc(1, ai->ai_addrlen);
"max_read" "1024"; // don't read more than 1024 bytes from any client
"gline_duration" "1h"; // issue G-lines lasting one hour
"max_cache_age" "60"; // only cache results for 60 seconds
- // "address" "192.168.0.10"; // do proxy tests from this address
+ // "bind_address" "192.168.0.10"; // do proxy tests from this address
};
"snoop" {
// Where to send snoop messages?
// to 0 to disable message expiration
};
"qserver" {
- "address" "127.0.0.1";
+ "bind_address" "127.0.0.1";
"port" "7702";
"password" "hello";
};