]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
CacheMgr: Fix cache_peer options userhash/sourcehash display mixup
authorAmos Jeffries <squid3@treenet.co.nz>
Tue, 10 May 2011 12:51:32 +0000 (00:51 +1200)
committerAmos Jeffries <squid3@treenet.co.nz>
Tue, 10 May 2011 12:51:32 +0000 (00:51 +1200)
src/neighbors.cc

index 2fd10be90de74ce7658eb870bc14e10804a14e06..80597932fe05703012ebbc8f2ad206d34656a8d5 100644 (file)
@@ -1579,13 +1579,15 @@ dump_peer_options(StoreEntry * sentry, peer * p)
 
     if (p->options.carp)
         storeAppendPrintf(sentry, " carp");
+
 #if USE_AUTH
     if (p->options.userhash)
         storeAppendPrintf(sentry, " userhash");
+#endif
 
-    if (p->options.userhash)
+    if (p->options.sourcehash)
         storeAppendPrintf(sentry, " sourcehash");
-#endif
+
     if (p->options.weighted_roundrobin)
         storeAppendPrintf(sentry, " weighted-round-robin");