mirror of
https://github.com/yggdrasil-network/yggdrasil-go.git
synced 2024-11-23 10:05:17 +00: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
@ -70,6 +70,9 @@ func (m *Yggdrasil) StartJSON(configjson []byte) error {
|
|||||||
}
|
}
|
||||||
options = append(options, core.AllowedPublicKey(k[:]))
|
options = append(options, core.AllowedPublicKey(k[:]))
|
||||||
}
|
}
|
||||||
|
for _, lAddr := range m.config.Listen {
|
||||||
|
options = append(options, core.ListenAddress(lAddr))
|
||||||
|
}
|
||||||
var err error
|
var err error
|
||||||
m.core, err = core.New(m.config.Certificate, logger, options...)
|
m.core, err = core.New(m.config.Certificate, logger, options...)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
Loading…
Reference in New Issue
Block a user