skywire
skywire copied to clipboard
Improve systray VPN button initialization
Did you run make format && make check? Yes
Fixes # _
Changes:
- add
IsDMSGClientReadymethod to visor for checking availability of dmsg-client [dmsgC]. we usesetupPKto check routes, andsetupPKuse dmsg actually, then needdmsgCbe ready to use it. IfdmsgCnot ready then VPN button on systray not available. It will check each 10 seconds. - add retrying logic to fetch vpn-servers from SD
How to test this PR:
- Clone PRs branch
- add
time.Sleep(20 * time.Second)in line 296 ofinit.goinpkg > visor > init.go. Should be like :go func() { defer wg.Done() time.Sleep(30 * time.Second) dmsgC.Serve(context.Background()) }() make build-systrayand run visor- check logs