Load listen addresses

This commit is contained in:
Neil Alexander 2022-09-03 17:26:12 +01:00
parent dc9720e580
commit 88a393a7b3

View File

@ -294,6 +294,9 @@ func run(args yggArgs, ctx context.Context, done chan struct{}) {
core.IfName(cfg.IfName),
core.IfMTU(cfg.IfMTU),
}
for _, addr := range cfg.Listen {
options = append(options, core.ListenAddress(addr))
}
for _, peer := range cfg.Peers {
options = append(options, core.Peer{URI: peer})
}