diff --git a/public/index.html b/public/index.html index abb4708..ac6c8cd 100644 --- a/public/index.html +++ b/public/index.html @@ -7,16 +7,52 @@ Unnamed Project -

Hello, World!

+

Home of

+ + + +

Who else is around? (refresh to see new nodes)

+ diff --git a/unnamed-project.go b/unnamed-project.go index f95fb6a..298f5f8 100644 --- a/unnamed-project.go +++ b/unnamed-project.go @@ -219,7 +219,7 @@ func parseAnnouncePacket(size int, addr *net.UDPAddr, packet []byte) (*nodeInfo, err := json.Unmarshal([]byte(payload), nodeInfo) nodeInfo.Addr = addr.IP.String() - nodeInfo.NodeID = fmt.Sprintf("%s-%s", nodeInfo.NodeID, nodeInfo.Addr) + nodeInfo.NodeID = fmt.Sprintf("%s", nodeInfo.NodeID) if err != nil { return nil, err } @@ -335,11 +335,7 @@ func dashboardServe(conf *config, nodeList *list.List) { dashboardMux.HandleFunc("/api/config", configHandler(conf)) dashboardMux.HandleFunc("/api/nodes", nodesHandler(nodeList)) - // We don't want the dashboard to be public - address := "localhost" - if conf.Debug { - address = "0.0.0.0" - } + address := "0.0.0.0" fmt.Printf("Starting dashboard at %s:%v\n", address, conf.FilePort) err := http.ListenAndServe(fmt.Sprintf("%s:%v", address, conf.FilePort), dashboardMux)