fix: considérer cfg.Server.API.Host #60

Merged
vlbeaudoin merged 1 commit from vlbeaudoin/fix/api-check-host into main 2024-07-23 11:45:53 -04:00 AGit
Showing only changes of commit 8a9decfe6c - Show all commits

4
cmd.go
View file

@ -125,7 +125,7 @@ var apiCmd = &cobra.Command{
case false: case false:
e.Logger.Fatal( e.Logger.Fatal(
e.Start( e.Start(
fmt.Sprintf(":%d", cfg.Server.API.Port), fmt.Sprintf("%s:%d", cfg.Server.API.Host, cfg.Server.API.Port),
), ),
) )
case true: case true:
@ -139,7 +139,7 @@ var apiCmd = &cobra.Command{
e.Logger.Fatal( e.Logger.Fatal(
e.StartTLS( e.StartTLS(
fmt.Sprintf(":%d", cfg.Server.API.Port), fmt.Sprintf("%s:%d", cfg.Server.API.Host, cfg.Server.API.Port),
cfg.Server.API.TLS.Certfile, cfg.Server.API.TLS.Certfile,
cfg.Server.API.TLS.Keyfile, cfg.Server.API.TLS.Keyfile,
), ),