From 26fb1014c86462b0531c4523c0f7f7852ce321e4 Mon Sep 17 00:00:00 2001 From: Yinebeb-01 Date: Tue, 13 Aug 2024 16:57:04 +0300 Subject: [PATCH] fix: enable tcp handhsake --- cmd/main.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cmd/main.go b/cmd/main.go index cf8a84b..3eb45aa 100755 --- a/cmd/main.go +++ b/cmd/main.go @@ -6,6 +6,7 @@ package main import ( "fmt" + "net/http" "github.com/gin-gonic/gin" "github.com/spf13/viper" @@ -46,6 +47,5 @@ func main() { v1.GET("/swagger/*any", ginSwagger.WrapHandler(swaggerFiles.Handler)) } - - router.Run(fmt.Sprintf("%v:%v", viper.GetString("server.host"), viper.GetString("server.port"))) + http.ListenAndServe(fmt.Sprintf("%v:%v", viper.GetString("server.host"), viper.GetString("server.port")), router) }