/* use first address only for pluto */
len = pos - end->srcip;
}
- w->has_srcip = 1;
+ w->has_srcip = !end->has_natip;
ttoaddr(end->srcip, len, v6 ? AF_INET6 : AF_INET, &w->host_srcip);
}
-
+ else
+ {
+ anyaddr(AF_INET, &w->host_srcip);
+ }
w->id = end->id;
w->cert = end->cert;
w->ca = end->ca;