Changeset 4601
- Timestamp:
- 11/07/08 06:15:19 (2 months ago)
- Files:
-
- trunk/src/libstrongswan/utils/host.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/src/libstrongswan/utils/host.c
r4571 r4601 397 397 if (streq(string, "%any")) 398 398 { 399 string = "0.0.0.0"; 400 this->address.sa_family = AF_INET; 399 return host_create_any(AF_INET); 401 400 } 402 401 else if (strchr(string, '.')) … … 450 449 int err, ret; 451 450 452 if (af == AF_INET6 || strchr(string, ':') || streq(string, "%any")) 453 {/* gethostbyname does not like IPv6 addresses or wildcards - fallback */ 451 if (streq(string, "%any")) 452 { 453 return host_create_any(af ? af : AF_INET); 454 } 455 else if (strchr(string, ':')) 456 { 457 /* gethostbyname does not like IPv6 addresses - fallback */ 454 458 return host_create_from_string(string, port); 455 459 }
