mobile: add support for Listen in config (#1063)

Co-authored-by: Neil <git@neilalexander.dev>
This commit is contained in:
Alex Akselrod 2023-10-21 10:33:17 -07:00 committed by GitHub
parent 8ea20cd205
commit 6a9493757d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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 {