mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-04-15 16:39:14 +00:00
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:
parent
aaf064377c
commit
c5e0072ce1
@ -1 +1 @@
|
|||||||
Wed May 14 14:17:15 EDT 2008
|
Wed May 14 14:19:52 EDT 2008
|
||||||
|
@ -2190,6 +2190,8 @@ sres_config_t *sres_parse_resolv_conf(sres_resolver_t *res,
|
|||||||
return c;
|
return c;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
uint16_t _sres_default_port = 53;
|
||||||
|
|
||||||
/** Parse config file.
|
/** Parse config file.
|
||||||
*
|
*
|
||||||
* @return Number of search domains, if successful.
|
* @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.check_names = 1;
|
||||||
c->c_opt.timeout = SRES_RETRY_INTERVAL;
|
c->c_opt.timeout = SRES_RETRY_INTERVAL;
|
||||||
c->c_opt.attempts = SRES_MAX_RETRY_COUNT;
|
c->c_opt.attempts = SRES_MAX_RETRY_COUNT;
|
||||||
c->c_port = 53;
|
c->c_port = _sres_default_port;
|
||||||
|
|
||||||
if (f != NULL) {
|
if (f != NULL) {
|
||||||
for (line = 1; fgets(buf, sizeof(buf), f); line++) {
|
for (line = 1; fgets(buf, sizeof(buf), f); line++) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user