From 60cfd5b941014f56004ea9e199abec8d4dc6f31b Mon Sep 17 00:00:00 2001 From: jub0bs Date: Wed, 28 Aug 2024 14:16:28 +0200 Subject: [PATCH] fix doc comment of IsDeemedInsecure method --- internal/origins/pattern.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/internal/origins/pattern.go b/internal/origins/pattern.go index f0db8f6..8c59fac 100644 --- a/internal/origins/pattern.go +++ b/internal/origins/pattern.go @@ -48,13 +48,11 @@ type Pattern struct { Port int } -// IsDeemedInsecure returns true if any of the following conditions is +// IsDeemedInsecure reports whether all of the following conditions are // fulfilled: // - p's scheme is not https, // - p's host is not a loopback IP address, // - p's host is not localhost. -// -// Otherwise, IsDeemedInsecure returns false. func (p *Pattern) IsDeemedInsecure() bool { return p.Scheme != schemeHTTPS && p.Kind != PatternKindLoopbackIP &&