Subdomains end with a dot

... or I'm just a brain in a van and choose to believe so
This commit is contained in:
Alexey Mozzhakov 2018-04-03 21:54:58 +03:00 committed by GitHub
commit e740af2d50
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -240,8 +240,8 @@ func (s *SSLStripper) processURL(url string) string {
// search for a known subdomain and replace it
found := false
for sub, repl := range subdomains {
what := fmt.Sprintf("://%s", sub)
with := fmt.Sprintf("://%s", repl)
what := fmt.Sprintf("://%s.", sub)
with := fmt.Sprintf("://%s.", repl)
if strings.Contains(url, what) {
url = strings.Replace(url, what, with, 1)
found = true