From 6a9493757d88471e4e70ad1323e27d731424ef8e Mon Sep 17 00:00:00 2001 From: Alex Akselrod Date: Sat, 21 Oct 2023 10:33:17 -0700 Subject: [PATCH] mobile: add support for `Listen` in config (#1063) Co-authored-by: Neil --- contrib/mobile/mobile.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/contrib/mobile/mobile.go b/contrib/mobile/mobile.go index 018fd1a..31e2f0a 100644 --- a/contrib/mobile/mobile.go +++ b/contrib/mobile/mobile.go @@ -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 {