Browse Source

fix(main.go): using bind for what address to host echo's web service

bind was being used as initial ip for the tv (which of course means we could no longer access the tv), now we can use bind to bind to a interface for the web service.
Apollo 2 years ago
parent
commit
c84979c5b5
1 changed files with 2 additions and 1 deletions
  1. 2 1
      main.go

+ 2 - 1
main.go

@@ -72,7 +72,8 @@ func main() {
 	}
 
 	var web WebServer = WebServer{}
-	web.Init(bind, "", strconv.Itoa(port))
+	//web.Init(bind, "", strconv.Itoa(port))
+	web.Init("192.168.254.75", bind, strconv.Itoa(port))
 
 	var e *echo.Echo = echo.New()
 	e.Use(middleware.Logger())