Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
BC
public
belle-sip
Commits
30762630
Commit
30762630
authored
Mar 19, 2013
by
Ghislain MARY
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Define default DNS lookup order.
parent
ecfff5f6
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
1 deletion
+8
-1
src/belle_sip_resolver.c
src/belle_sip_resolver.c
+8
-0
src/dns.c
src/dns.c
+0
-1
No files found.
src/belle_sip_resolver.c
View file @
30762630
...
...
@@ -72,6 +72,14 @@ static struct dns_resolv_conf *resconf(belle_sip_resolver_context_t *ctx) {
}
#endif
/* If the lookup order has not been initialized, initialize it now to the following order:
1. file
2. cache
3. bind
*/
if
(
ctx
->
resconf
->
lookup
[
0
]
==
'\0'
)
{
strncpy
(
ctx
->
resconf
->
lookup
,
"fcb"
,
sizeof
ctx
->
resconf
->
lookup
);
}
return
ctx
->
resconf
;
}
...
...
src/dns.c
View file @
30762630
...
...
@@ -4388,7 +4388,6 @@ int dns_resconf_loadfromresolv(struct dns_resolv_conf *resconf) {
memcpy
(
&
resconf
->
nameserver
[
i
],
&
addresses
[
i
],
sizeof
(
union
res_sockaddr_union
));
}
res_ndestroy
(
&
res
);
strncpy
(
resconf
->
lookup
,
"fcb"
,
sizeof
resconf
->
lookup
);
return
i
>
0
?
0
:-
1
;
}
#endif
/*HAVE_RESINIT*/
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment