aboutsummaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
authorFChannel <>2021-06-28 12:06:20 -0700
committerFChannel <>2021-06-28 12:06:20 -0700
commitac7fd1f68d396cb676a9a111bddae7e36302b4c6 (patch)
tree97234ae9e079cb02c88360c281c93d831454c976 /main.go
parent94c92948ae7ae669b6b6466ef4b7f00cc430f7ef (diff)
tor proxy, added server version in faq, increased verification time
Diffstat (limited to 'main.go')
-rw-r--r--main.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/main.go b/main.go
index c632e53..a8faeca 100644
--- a/main.go
+++ b/main.go
@@ -1491,6 +1491,11 @@ func ParseCommentForReplies(comment string) []ObjectBase {
func CheckValidActivity(id string) (Collection, bool) {
+ re := regexp.MustCompile(`.+\.onion(.+)?`)
+ if re.MatchString(id) {
+ id = strings.Replace(id, "https", "http", 1)
+ }
+
req, err := http.NewRequest("GET", id, nil)
if err != nil {