mirror of
https://github.com/cwinfo/yggdrasil-go.git
synced 2024-11-09 16:20:26 +00:00
Load listen addresses
This commit is contained in:
parent
dc9720e580
commit
88a393a7b3
@ -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…
Reference in New Issue
Block a user