]> Sergey Matveev's repositories - sgblog.git/blobdiff - cmd/sgblog/main.go
telnet:// is used in practice
[sgblog.git] / cmd / sgblog / main.go
index fc99775e24d1ebcecdd01b2b4ee1e8ebdd24dd78..9162a88b0ffb830c468d8886830a69de9c06b7dc 100644 (file)
@@ -64,6 +64,7 @@ var (
                "gopher": struct{}{},
                "http":   struct{}{},
                "https":  struct{}{},
+               "telnet": struct{}{},
        }
 )
 
@@ -552,6 +553,7 @@ func main() {
                if cfg.AboutURL != "" {
                        out.Write([]byte(fmt.Sprintf("[%s]\n", makeA(cfg.AboutURL, "about"))))
                }
+               out.Write([]byte(fmt.Sprintf("[%s]\n", makeA(cfg.URLPrefix+"/", "index"))))
                if parent != "" {
                        out.Write([]byte(fmt.Sprintf(
                                "[%s]\n",