feat(config): add configurable host binding for server (#454)

* feat(config): add configurable host binding for server
This commit is contained in:
vuonglv(Andy)
2025-12-08 22:16:39 +07:00
committed by GitHub
parent 6ad188921c
commit 5c3a013cd1
4 changed files with 10 additions and 2 deletions

View File

@@ -498,7 +498,7 @@ func (s *Service) Run(ctx context.Context) error {
}()
time.Sleep(100 * time.Millisecond)
fmt.Printf("API server started successfully on: %d\n", s.cfg.Port)
fmt.Printf("API server started successfully on: %s:%d\n", s.cfg.Host, s.cfg.Port)
if s.hooks.OnAfterStart != nil {
s.hooks.OnAfterStart(s)