Kaynağa Gözat

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 yıl önce
ebeveyn
işleme
c84979c5b5
1 değiştirilmiş dosya ile 2 ekleme ve 1 silme
  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())