fix: bad address

This commit is contained in:
Derrick Hammer 2024-01-28 05:13:43 -05:00
parent 309cc50845
commit d51c52b985
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
1 changed files with 3 additions and 1 deletions

View File

@ -10,6 +10,7 @@ import (
"go.uber.org/zap"
"net"
"net/http"
"strconv"
)
func initCheckRequiredConfig(logger *zap.Logger, config *viper.Viper) error {
@ -60,8 +61,9 @@ func NewIdentity(config *viper.Viper, logger *zap.Logger) (ed25519.PrivateKey, e
}
func NewServer(lc fx.Lifecycle, config *viper.Viper, logger *zap.Logger) (*http.Server, error) {
srv := &http.Server{
Addr: config.GetString("core.port"),
Addr: ":" + strconv.FormatUint(uint64(config.GetUint("core.port")), 10),
Handler: registry.GetRouter(),
}