Skip to content

Commit

Permalink
mobile: add support for Listen in config
Browse files Browse the repository at this point in the history
  • Loading branch information
aakselrod committed Sep 29, 2023
1 parent c8b9aae commit 9da395c
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 @@ -76,6 +76,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))
}
m.core, err = core.New(sk[:], m.logger, options...)
if err != nil {
panic(err)
Expand Down

0 comments on commit 9da395c

Please sign in to comment.