fix: pass domain and port info to s5 http config
This commit is contained in:
parent
c7af6286ad
commit
fa4a3e6f2a
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue