summaryrefslogtreecommitdiff
path: root/exports
diff options
context:
space:
mode:
authorjwijenbergh <jeroenwijenbergh@protonmail.com>2023-05-02 11:14:44 +0200
committerJeroen Wijenbergh <46386452+jwijenbergh@users.noreply.github.com>2023-09-25 09:43:37 +0200
commit16d28feb3430786deb7dc3273b82a7a8ebb94ac9 (patch)
tree06e034f47468ecb92c597b9b5365e732275bcdb1 /exports
parentbb7cca21efdef69cb72b38fa988ec769c0ccb05c (diff)
Exports: Document that CookieReply can be done in the background
Diffstat (limited to 'exports')
-rw-r--r--exports/exports.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/exports/exports.go b/exports/exports.go
index b9a5fcd..ae741d7 100644
--- a/exports/exports.go
+++ b/exports/exports.go
@@ -292,6 +292,7 @@ func ServerList() (*C.char, *C.char) {
// This is called when the user/client has not set a profile for this server before, or the current profile is invalid
// when the user has selected a profile. Reply with the choice using the `CookieReply` function and the profile ID
// e.g. CookieReply(cookie, "wireguard")
+// CookieReply can be done in the background as the Go library waits for a reply
// The data for this transition is defined in types/server/server.go RequiredAskTransition with embedded data Profiles in types/server/server.go
// Note that RequiredTransition contains the cookie to be used for the CookieReply
// so a client would:
@@ -304,6 +305,7 @@ func ServerList() (*C.char, *C.char) {
// if for some reason, an invalid location has been configured, the library will ask the client for a new one
// when the user has selected al ocation. Reply with the choice using the `CookieReply` function and the location ID
// e.g. CookieReply(cookie, "nl")
+// CookieReply can be done in the background as the Go library waits for a reply
// The data for this transition is defined in types/server/server.go RequiredAskTransition with embedded data a list of strings ([]string)
// Note that RequiredTransition contains the cookie to be used for the CookieReply,
// so a client would: