Selaa lähdekoodia

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 vuotta sitten
vanhempi
commit
c84979c5b5
1 muutettua tiedostoa jossa 2 lisäystä ja 1 poistoa
  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())