mirror of
https://github.com/yggdrasil-network/yggdrasil-go.git
synced 2025-04-28 06:05:06 +03:00
Load listen addresses
This commit is contained in:
parent
dc9720e580
commit
88a393a7b3
1 changed files with 3 additions and 0 deletions
|
@ -294,6 +294,9 @@ func run(args yggArgs, ctx context.Context, done chan struct{}) {
|
||||||
core.IfName(cfg.IfName),
|
core.IfName(cfg.IfName),
|
||||||
core.IfMTU(cfg.IfMTU),
|
core.IfMTU(cfg.IfMTU),
|
||||||
}
|
}
|
||||||
|
for _, addr := range cfg.Listen {
|
||||||
|
options = append(options, core.ListenAddress(addr))
|
||||||
|
}
|
||||||
for _, peer := range cfg.Peers {
|
for _, peer := range cfg.Peers {
|
||||||
options = append(options, core.Peer{URI: peer})
|
options = append(options, core.Peer{URI: peer})
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue