Skip to content

Commit

Permalink
mobile: add support for Listen in config (#1063)
Browse files Browse the repository at this point in the history
Co-authored-by: Neil <[email protected]>
  • Loading branch information
aakselrod and neilalexander authored Oct 21, 2023
1 parent 8ea20cd commit 6a94937
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions contrib/mobile/mobile.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 6a94937

Please sign in to comment.