fix: pass domain and port info to s5 http config

This commit is contained in:
Derrick Hammer 2024-01-11 23:33:11 -05:00
parent c7af6286ad
commit fa4a3e6f2a
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
1 changed files with 3 additions and 0 deletions

View File

@ -45,6 +45,9 @@ func (s *S5Protocol) Initialize(config *viper.Viper, logger *zap.Logger) error {
}
}
cfg.HTTP.API.Domain = config.GetString("core.domain")
cfg.HTTP.API.Port = config.GetUint("core.port")
_, p, err := ed25519.GenerateKey(nil)
if err != nil {
panic(err)