Skip to content

Commit

Permalink
update :: host 설정 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
rlaisqls committed Jan 10, 2024
1 parent 1c716c3 commit 59b2660
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions pkg/api/http_server.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ import (
"net"
"net/http"
"path"
"strings"
"sync"

httpstatic "github.com/xquare-dashboard/pkg/api/static"
Expand Down Expand Up @@ -67,9 +66,8 @@ func (hs *HTTPServer) Run(ctx context.Context) error {
hs.applyRoutes()

// Remove any square brackets enclosing IPv6 addresses, a format we support for backwards compatibility
host := strings.TrimSuffix(strings.TrimPrefix("127.0.0.1", "["), "]")
hs.httpSrv = &http.Server{
Addr: net.JoinHostPort(host, "9090"),
Addr: ":9090",
Handler: hs.web,
ReadTimeout: 10000,
}
Expand Down

0 comments on commit 59b2660

Please sign in to comment.