From 498ea0bdab4d092a9c7dad648f80d1132fd7e145 Mon Sep 17 00:00:00 2001 From: Gabe Black Date: Tue, 4 Jan 2011 17:11:49 -0500 Subject: [PATCH] Params: Print the IP components in the right order. --- src/base/inet.cc | 4 ++-- 1 file 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; } -- 2.30.2