mirror of
https://github.com/yggdrasil-network/yggdrasil-go.git
synced 2025-04-27 21:55:07 +03:00
mobile: add support for Listen
in config (#1063)
Co-authored-by: Neil <git@neilalexander.dev>
This commit is contained in:
parent
8ea20cd205
commit
6a9493757d
1 changed files with 3 additions and 0 deletions
|
@ -70,6 +70,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))
|
||||
}
|
||||
var err error
|
||||
m.core, err = core.New(m.config.Certificate, logger, options...)
|
||||
if err != nil {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue