aboutsummaryrefslogtreecommitdiff
path: root/internal
diff options
context:
space:
mode:
Diffstat (limited to 'internal')
-rw-r--r--internal/qna/qna.go4
1 files changed, 4 insertions, 0 deletions
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