Index: webrtc/base/ipaddress.cc |
diff --git a/webrtc/base/ipaddress.cc b/webrtc/base/ipaddress.cc |
index b1d1265ae479ee4c97f106d2a52fabb0614ca897..c06a1a7b050a5a21efe45071c5f86a036da1de18 100644 |
--- a/webrtc/base/ipaddress.cc |
+++ b/webrtc/base/ipaddress.cc |
@@ -294,7 +294,7 @@ bool IPIsAny(const IPAddress& ip) { |
bool IPIsLoopback(const IPAddress& ip) { |
switch (ip.family()) { |
case AF_INET: { |
- return ip == IPAddress(INADDR_LOOPBACK); |
+ return (ip.v4AddressAsHostOrderInteger() >> 24) == 127; |
} |
case AF_INET6: { |
return ip == IPAddress(in6addr_loopback); |