fix for default ports

This commit is contained in:
Tom Andrade 2019-03-18 23:16:44 +01:00
parent a555130456
commit d33fd4d43d
Signed by: wolvie
GPG Key ID: 31AAB07872E82669

View File

@ -124,6 +124,8 @@ func shortner(ctx *web.Context) {
port = ":" + port + "/"
} else if port != "443" && proto == "https" {
port = ":" + port + "/"
} else if port == "443" || port == "80" {
port = "/"
}
err := set(conn, u.String(), suffix)
if err != nil {