mirror of
https://github.com/cwinfo/yggdrasil-go.git
synced 2024-12-22 14:05:41 +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[:]))
|
||||
}
|
||||
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…
Reference in New Issue
Block a user