added httpaddress and wwwroot command line check and do not overwrite if it's empty

This commit is contained in:
vadym 2022-12-13 14:40:12 +02:00
parent 6f8a9da19f
commit fde986fa0e

View file

@ -294,8 +294,12 @@ func run(args yggArgs, ctx context.Context) {
return
}
//override httpaddress and wwwroot parameters in cfg
if len(args.httpaddress) > 0 {
cfg.HttpAddress = args.httpaddress
}
if len(args.wwwroot) > 0 {
cfg.WwwRoot = args.wwwroot
}
// Setup the RiV-mesh node itself.
{