Chromium Code Reviews| Index: net/base/net_util.cc |
| diff --git a/net/base/net_util.cc b/net/base/net_util.cc |
| index 028b56b74a8bb526b4e486bb1c328efda71005d4..221c852aee77a311d88ff6f01c9933769a95a8bd 100644 |
| --- a/net/base/net_util.cc |
| +++ b/net/base/net_util.cc |
| @@ -733,6 +733,8 @@ int GetPortFromSockaddr(const struct sockaddr* address, socklen_t address_len) { |
| bool IsLocalhost(const std::string& host) { |
| if (host == "localhost" || host == "localhost.localdomain" || |
| host == "localhost6" || host == "localhost6.localdomain6" || |
| + host == "localhost." || host == "localhost.localdomain." || |
| + host == "localhost6." || host == "localhost6.localdomain6." || |
|
Ryan Sleevi
2015/06/11 00:34:03
:( on more .localdomain (these are not reserved by
estark
2015/06/11 02:35:32
Do we need to keep these .localdomain things? Why
|
| IsLocalhostTLD(host)) |
| return true; |