Prechádzať zdrojové kódy

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 rokov pred
rodič
commit
c84979c5b5
1 zmenil súbory, kde vykonal 2 pridanie a 1 odobranie
  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())