1
0
mirror of https://github.com/amir20/dozzle.git synced 2025-12-26 23:21:41 +01:00

Removes hostname from title

This commit is contained in:
Amir Raminfar
2018-11-25 12:23:29 -08:00
parent a5bcec68cb
commit 651291ecad
2 changed files with 5 additions and 7 deletions

10
main.go
View File

@@ -8,7 +8,6 @@ import (
"html/template"
"log"
"net/http"
"os"
"strings"
"github.com/docker/docker/api/types"
@@ -96,12 +95,11 @@ func handleIndex(box packr.Box, w http.ResponseWriter) {
if base != "/" {
path = base
}
hostname, _ := os.Hostname()
data := struct {
Base string
SSL bool
Hostname string
}{path, ssl, hostname}
Base string
SSL bool
}{path, ssl}
err = tmpl.Execute(w, data)
if err != nil {
panic(err)