Skip to content

Commit

Permalink
fix: https port is not effective
Browse files Browse the repository at this point in the history
  • Loading branch information
xhofe committed Jul 5, 2023
1 parent 5e8bfb0 commit e4c7b0f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ the address is defined in config file`,
}()
}
if conf.Conf.Scheme.HttpsPort != -1 {
httpsBase := fmt.Sprintf("%s:%d", conf.Conf.Scheme.Address, conf.Conf.Scheme.HttpPort)
httpsBase := fmt.Sprintf("%s:%d", conf.Conf.Scheme.Address, conf.Conf.Scheme.HttpsPort)
utils.Log.Infof("start HTTPS server @ %s", httpsBase)
httpsSrv = &http.Server{Addr: httpsBase, Handler: r}
go func() {
Expand Down

0 comments on commit e4c7b0f

Please sign in to comment.