config: updated to use only host and not port var

This commit is contained in:
David Allen 2024-12-10 15:22:03 -07:00
parent 0fc81ac67c
commit 1848819244
Signed by: towk
GPG key ID: 793B2924A49B3A3F
2 changed files with 4 additions and 10 deletions

View file

@ -58,9 +58,7 @@ func New(conf *config.Config) *Server {
// return based on config values
return &Server{
Config: conf,
Server: &http.Server{
Addr: fmt.Sprintf("%s:%d", conf.Server.Host, conf.Server.Port),
},
Server: &http.Server{Addr: fmt.Sprintf("%s", conf.Server.Host)},
Jwks: Jwks{
Uri: conf.Server.Jwks.Uri,
Retries: conf.Server.Jwks.Retries,