mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-11-15 13:58:32 +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:
1 parent
aaf064377c
commit
c5e0072ce1
2 files changed
+4
-2
No files matched your search
@@ -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++) {
|
||||
|
||||
Reference in new issue
Block a user