mirror of
https://github.com/yggdrasil-network/yggdrasil-go.git
synced 2025-04-29 22:55:06 +03:00
Moved UI resources to Wwwroot in embedded golang webserver RIVM-23
This commit is contained in:
parent
b52e1bb787
commit
dca4fdd689
6 changed files with 15 additions and 9 deletions
|
@ -294,10 +294,10 @@ func run(args yggArgs, ctx context.Context) {
|
|||
return
|
||||
}
|
||||
//override httpaddress and wwwroot parameters in cfg
|
||||
if len(args.httpaddress) > 0 {
|
||||
if len(cfg.HttpAddress) == 0 {
|
||||
cfg.HttpAddress = args.httpaddress
|
||||
}
|
||||
if len(args.wwwroot) > 0 {
|
||||
if len(cfg.WwwRoot) == 0 {
|
||||
cfg.WwwRoot = args.wwwroot
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue