mirror of
https://github.com/NLnetLabs/unbound.git
synced 2025-12-20 23:00:56 -05:00
- Fix unbound-control and ipv6 only.
git-svn-id: file:///svn/unbound/trunk@3962 be551aaa-1e26-0410-a405-d3ace91eadb9
This commit is contained in:
parent
235e1399eb
commit
631d2b4214
2 changed files with 7 additions and 2 deletions
|
|
@ -1,5 +1,6 @@
|
|||
13 December 2016: Wouter
|
||||
- Fix #1182: Fix Resource leak (socket), at startup.
|
||||
- Fix unbound-control and ipv6 only.
|
||||
|
||||
9 December 2016: Wouter
|
||||
- Fix #1176: stack size too small for Alpine Linux.
|
||||
|
|
|
|||
|
|
@ -195,9 +195,13 @@ contact_server(const char* svr, struct config_file* cfg, int statuscmd)
|
|||
int fd;
|
||||
/* use svr or the first config entry */
|
||||
if(!svr) {
|
||||
if(cfg->control_ifs)
|
||||
if(cfg->control_ifs) {
|
||||
svr = cfg->control_ifs->str;
|
||||
else svr = "127.0.0.1";
|
||||
} else if(cfg->do_ip4) {
|
||||
svr = "127.0.0.1";
|
||||
} else {
|
||||
svr = "::1";
|
||||
}
|
||||
/* config 0 addr (everything), means ask localhost */
|
||||
if(strcmp(svr, "0.0.0.0") == 0)
|
||||
svr = "127.0.0.1";
|
||||
|
|
|
|||
Loading…
Reference in a new issue