From 9d22bac389616a0f14835a843251f32ffd4db59c Mon Sep 17 00:00:00 2001 From: Amos Jeffries Date: Tue, 14 May 2013 12:36:45 -0600 Subject: [PATCH] Drop terminal comments and garbage options from cache_peer lines --- src/cache_cf.cc | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/cache_cf.cc b/src/cache_cf.cc index f26e43db51..265abd09c0 100644 --- a/src/cache_cf.cc +++ b/src/cache_cf.cc @@ -2335,9 +2335,11 @@ parse_peer(CachePeer ** head) p->connection_auth = 1; } else if (strcmp(token, "connection-auth=auto") == 0) { p->connection_auth = 2; + } else if (token[0] == '#') { + // start of a text comment. stop reading this line. + break; } else { - debugs(3, DBG_CRITICAL, "parse_peer: token='" << token << "'"); - self_destruct(); + debugs(3, DBG_PARSE_NOTE(DBG_IMPORTANT), "ERROR: Ignoring unknown cache_peer option '" << token << "'"); } } -- 2.47.2