From 9da395ceafc803227034886e508f241fdda7cdae Mon Sep 17 00:00:00 2001 From: Alex Akselrod Date: Thu, 28 Sep 2023 17:17:30 -0700 Subject: [PATCH] mobile: add support for `Listen` in config --- contrib/mobile/mobile.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/contrib/mobile/mobile.go b/contrib/mobile/mobile.go index 85ff63f1d..278ff2c64 100644 --- a/contrib/mobile/mobile.go +++ b/contrib/mobile/mobile.go @@ -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)