Tue May 13 16:45:09 EDT 2008 Pekka Pessi <first.last@nokia.com>

* sres.c: allow dns redirection with _sres_default_port



git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@8401 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
Michael Jerris 2008-05-14 18:20:11 +00:00
parent aaf064377c
commit c5e0072ce1
2 changed files with 4 additions and 2 deletions

View File

@ -1 +1 @@
Wed May 14 14:17:15 EDT 2008
Wed May 14 14:19:52 EDT 2008

View File

@ -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++) {