From 1cb4ba8c5c955c512f2ac6b2b147dac1dbcdbba7 Mon Sep 17 00:00:00 2001 From: "Alexander \"Arav\" Andreev" Date: Fri, 11 Feb 2022 03:06:40 +0400 Subject: [PATCH] Added my little whining on always empty scheme in a comment on NetworkType() func. --- pkg/utils/dwelling.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pkg/utils/dwelling.go b/pkg/utils/dwelling.go index 5f88f9d..bd78bdc 100644 --- a/pkg/utils/dwelling.go +++ b/pkg/utils/dwelling.go @@ -15,6 +15,9 @@ func MainSite(host string) string { // NetworkType detects network based on host suffix, // whether client connected from Tor, I2P or Clearnet. +// Holy shit, net/http/Response doesn't actually save +// a URL.Scheme and just spit out an empty string. +// What a shame. func NetworkType(host string) (string, string) { if strings.Contains(host, "i2p") { return "i2p", "http"