Commit e921b000 authored by Pekka Pessi's avatar Pekka Pessi

sres.c: allow dns redirection with _sres_default_port

darcs-hash:20080513204509-db55f-5d1bca7b3a4d0d6d3e0015b331bacd6aa3a47c4e.gz
parent d7a39a0b
......@@ -2190,6 +2190,8 @@ sres_config_t *sres_parse_resolv_conf(sres_resolver_t *res,
return c;
}
uint16_t _sres_default_port = 53;
/** Parse config file.
*
* @return Number of search domains, if successful.
......@@ -2212,7 +2214,7 @@ int sres_parse_config(sres_config_t *c, FILE *f)
c->c_opt.check_names = 1;
c->c_opt.timeout = SRES_RETRY_INTERVAL;
c->c_opt.attempts = SRES_MAX_RETRY_COUNT;
c->c_port = 53;
c->c_port = _sres_default_port;
if (f != NULL) {
for (line = 1; fgets(buf, sizeof(buf), f); line++) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment