Skip to content

Commit

Permalink
fix doc comment of IsDeemedInsecure method
Browse files Browse the repository at this point in the history
  • Loading branch information
jub0bs committed Aug 28, 2024
1 parent ddd4646 commit 60cfd5b
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions internal/origins/pattern.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 &&
Expand Down

0 comments on commit 60cfd5b

Please sign in to comment.