Chore: Use net.JoinHostPort (#28421)
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
This commit is contained in:
1 parent
020dde53e4
commit
077eab1b24
2 files changed
+4
-2
No files matched your search
@@ -107,7 +107,7 @@ func (hs *HTTPServer) Run(ctx context.Context) error {
|
||||
hs.applyRoutes()
|
||||
|
||||
hs.httpSrv = &http.Server{
|
||||
Addr: fmt.Sprintf("%s:%s", setting.HttpAddr, setting.HttpPort),
|
||||
Addr: net.JoinHostPort(setting.HttpAddr, setting.HttpPort),
|
||||
Handler: hs.macaron,
|
||||
}
|
||||
switch setting.Protocol {
|
||||
|
||||
Reference in new issue
Block a user