Skip to content

Commit

Permalink
fix: enable tcp handhsake
Browse files Browse the repository at this point in the history
  • Loading branch information
yinebebt committed Aug 13, 2024
1 parent 5e3eb67 commit 26fb101
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmd/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ package main

import (
"fmt"
"net/http"

"github.com/gin-gonic/gin"
"github.com/spf13/viper"
Expand Down Expand Up @@ -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)
}

0 comments on commit 26fb101

Please sign in to comment.