fix: empty wakuv2 host (#2342)

This commit is contained in:
RichΛrd 2021-08-31 12:27:02 -04:00 committed by GitHub
parent 0c0e02e93a
commit 3463853f5f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 0 deletions

View File

@ -240,6 +240,10 @@ func (b *StatusNode) wakuV2Service(nodeKey string, wakuCfg *params.WakuV2Config,
StoreNodes: clusterCfg.WakuStoreNodes,
}
if cfg.Host == "" {
cfg.Host = wakuv2.DefaultConfig.Host
}
if wakuCfg.MaxMessageSize > 0 {
cfg.MaxMessageSize = wakuCfg.MaxMessageSize
}