summaryrefslogtreecommitdiff
path: root/client/discovery.go
diff options
context:
space:
mode:
Diffstat (limited to 'client/discovery.go')
-rw-r--r--client/discovery.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/client/discovery.go b/client/discovery.go
index 596715f..b1cae32 100644
--- a/client/discovery.go
+++ b/client/discovery.go
@@ -112,6 +112,8 @@ func (c *Client) DiscoServers(ck *cookie.Cookie, search string) (*discotypes.Ser
}, err
}
+// DiscoveryStartup gets the discovery when the client is just starting up
+// cb is called when discovery has finished in the background
func (c *Client) DiscoveryStartup(cb func()) error {
// Not supported with Let's Connect! & govVPN
if !c.hasDiscovery() {