diff --git a/gopher/gopher.go b/gopher/gopher.go index dbf0d49..3b15440 100644 --- a/gopher/gopher.go +++ b/gopher/gopher.go @@ -171,7 +171,7 @@ func buildLink(host, port, gtype, resource string) string { case "h": u, tf := isWebLink(resource) if tf { - if len(u) > 4 && string(u[:4]) == "http" { + if strings.Index(u, "://") > 0 { return u } else { return fmt.Sprintf("http://%s", u)