From f6c1eb7e58a5fc70e720311482f8147b791e6104 Mon Sep 17 00:00:00 2001 From: Rasmus Dahlberg Date: Sun, 2 Apr 2023 22:15:03 +0200 Subject: Minor edit --- internal/qna/qna.go | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'internal/qna') diff --git a/internal/qna/qna.go b/internal/qna/qna.go index f8e6bd8..eab4b71 100644 --- a/internal/qna/qna.go +++ b/internal/qna/qna.go @@ -39,6 +39,10 @@ func (a Answer) String() string { return fmt.Sprintf("%s header=%s attribute=%s", a.Domain, a.HTTP, a.HTML) } +func (a *Answer) OnionLocation() bool { + return a.HTTP != "" || a.HTML != "" +} + type Progress struct { NumOK int NumOnion int -- cgit v1.2.3