fix: considérer cfg.Server.API.Host
Valeur n'avait aucun effet précédemment, permet maintenant de choisir sur quel hôte le serveur API est rejoignable
This commit is contained in:
parent
31bcdbac20
commit
8a9decfe6c
1 changed files with 2 additions and 2 deletions
4
cmd.go
4
cmd.go
|
@ -125,7 +125,7 @@ var apiCmd = &cobra.Command{
|
|||
case false:
|
||||
e.Logger.Fatal(
|
||||
e.Start(
|
||||
fmt.Sprintf(":%d", cfg.Server.API.Port),
|
||||
fmt.Sprintf("%s:%d", cfg.Server.API.Host, cfg.Server.API.Port),
|
||||
),
|
||||
)
|
||||
case true:
|
||||
|
@ -139,7 +139,7 @@ var apiCmd = &cobra.Command{
|
|||
|
||||
e.Logger.Fatal(
|
||||
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.Keyfile,
|
||||
),
|
||||
|
|
Loading…
Reference in a new issue