From fa4a3e6f2a89c4f1715f1a6c1ca5e753f917d0a0 Mon Sep 17 00:00:00 2001 From: Derrick Hammer Date: Thu, 11 Jan 2024 23:33:11 -0500 Subject: [PATCH] fix: pass domain and port info to s5 http config --- protocols/s5.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/protocols/s5.go b/protocols/s5.go index 4839dec..561f1e8 100644 --- a/protocols/s5.go +++ b/protocols/s5.go @@ -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)