Bladeren bron

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 jaren geleden
bovenliggende
commit
c84979c5b5
1 gewijzigde bestanden met toevoegingen van 2 en 1 verwijderingen
  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())