mirror of
https://github.com/samba-team/samba.git
synced 2025-12-20 16:23:51 +03:00
r15798: shortcut the lookup of "localhost" in the ipv6 backend
(This used to be commit dea82fa615)
This commit is contained in:
committed by
Gerald (Jerry) Carter
parent
225d6485eb
commit
fd51a5c5bd
@@ -28,7 +28,11 @@ static struct in6_addr interpret_addr6(const char *name)
|
||||
struct hostent *he;
|
||||
|
||||
if (name == NULL) return in6addr_any;
|
||||
|
||||
|
||||
if (strcasecmp(name, "localhost") == 0) {
|
||||
name = "::1";
|
||||
}
|
||||
|
||||
he = gethostbyname2(name, PF_INET6);
|
||||
|
||||
if (he == NULL) return in6addr_any;
|
||||
|
||||
Reference in New Issue
Block a user