mirror of
https://github.com/yggdrasil-network/yggdrasil-go.git
synced 2025-04-28 06:05:06 +03:00
mobile: add support for Listen
in config
This commit is contained in:
parent
c8b9aaeb67
commit
9da395ceaf
1 changed files with 3 additions and 0 deletions
|
@ -76,6 +76,9 @@ func (m *Yggdrasil) StartJSON(configjson []byte) error {
|
|||
}
|
||||
options = append(options, core.AllowedPublicKey(k[:]))
|
||||
}
|
||||
for _, lAddr := range m.config.Listen {
|
||||
options = append(options, core.ListenAddress(lAddr))
|
||||
}
|
||||
m.core, err = core.New(sk[:], m.logger, options...)
|
||||
if err != nil {
|
||||
panic(err)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue