diff options
author | FChannel <> | 2021-06-28 12:06:20 -0700 |
---|---|---|
committer | FChannel <> | 2021-06-28 12:06:20 -0700 |
commit | ac7fd1f68d396cb676a9a111bddae7e36302b4c6 (patch) | |
tree | 97234ae9e079cb02c88360c281c93d831454c976 /main.go | |
parent | 94c92948ae7ae669b6b6466ef4b7f00cc430f7ef (diff) |
tor proxy, added server version in faq, increased verification time
Diffstat (limited to 'main.go')
-rw-r--r-- | main.go | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -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 { |