ike: Use proper hostname(s) when name resolution failed
Was wrong since 0edce68767.
Fixes #440.
This commit is contained in:
@@ -1174,7 +1174,7 @@ METHOD(ike_sa_t, initiate, status_t,
|
||||
host_t *host;
|
||||
char *addr;
|
||||
|
||||
addr = this->ike_cfg->get_my_addr(this->ike_cfg);
|
||||
addr = this->ike_cfg->get_other_addr(this->ike_cfg);
|
||||
host = this->ike_cfg->resolve_other(this->ike_cfg, AF_UNSPEC);
|
||||
is_anyaddr = host && host->is_anyaddr(host);
|
||||
DESTROY_IF(host);
|
||||
|
||||
Reference in New Issue
Block a user