HTTP on localhost for Ygg demo

This commit is contained in:
Neil Alexander 2020-06-10 14:01:20 +01:00
parent d7faebcfb1
commit 5475a05e0f

View file

@ -197,7 +197,7 @@ func main() {
logrus.Fatal(httpServer.Serve(ygg))
}()
go func() {
httpBindAddr := fmt.Sprintf(":%d", *instancePort)
httpBindAddr := fmt.Sprintf("localhost:%d", *instancePort)
logrus.Info("Listening on ", httpBindAddr)
logrus.Fatal(http.ListenAndServe(httpBindAddr, nil))
}()