1
0
Fork 0

chore: minor fixes

This commit is contained in:
Arthur K. 2026-01-23 11:13:44 +03:00
parent 0448f66ab2
commit 2af9e734dd
Signed by: wzray
GPG key ID: B97F30FDC4636357
6 changed files with 28 additions and 15 deletions

View file

@ -81,7 +81,7 @@ func (c Config) Validate() error {
}
}
if c.Configs.Host.set {
if c.Configs.Master.set {
if err := c.Configs.Master.Validate(); err != nil {
return fmt.Errorf("configs.master: %w", err)
}

View file

@ -30,19 +30,19 @@ func (c HostConfig) Validate() error {
}
if c.LocalAddress == "" {
return errors.New("missing local address")
return errors.New("missing local_address")
}
if c.InternalEntrypoint == "" {
return errors.New("missing internal entrypoint")
return errors.New("missing internal_entrypoint")
}
if c.ExternalEntrypoint == "" {
return errors.New("missing external entrypoint")
return errors.New("missing external_entrypoint")
}
if c.ListenAddress == "" {
return errors.New("missing listen address")
return errors.New("missing listen_address")
}
return nil