summaryrefslogtreecommitdiff
path: root/src/base
diff options
context:
space:
mode:
Diffstat (limited to 'src/base')
-rw-r--r--src/base/inet.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/base/inet.cc b/src/base/inet.cc
index e4612c02d..0fb864dab 100644
--- a/src/base/inet.cc
+++ b/src/base/inet.cc
@@ -138,8 +138,8 @@ operator<<(ostream &stream, const IpAddress &ia)
{
uint32_t ip = ia.ip();
ccprintf(stream, "%x.%x.%x.%x",
- (uint8_t)(ip >> 0), (uint8_t)(ip >> 8),
- (uint8_t)(ip >> 16), (uint8_t)(ip >> 24));
+ (uint8_t)(ip >> 24), (uint8_t)(ip >> 16),
+ (uint8_t)(ip >> 8), (uint8_t)(ip >> 0));
return stream;
}