summaryrefslogtreecommitdiff
path: root/exports
diff options
context:
space:
mode:
authorjwijenbergh <jeroenwijenbergh@protonmail.com>2022-07-08 18:40:49 +0200
committerjwijenbergh <jeroenwijenbergh@protonmail.com>2022-07-08 18:40:49 +0200
commit040db9385581f2c3511e1d1648c83a1020b8c250 (patch)
tree405267271939db5f769b617f7e6280d53deddaba /exports
parenta6cba736913dd78a8ac6907e0b0572cf90aee866 (diff)
Python + Exports: Fix discovery function names
Diffstat (limited to 'exports')
-rw-r--r--exports/exports.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/exports/exports.go b/exports/exports.go
index 2f5c357..ed47d91 100644
--- a/exports/exports.go
+++ b/exports/exports.go
@@ -143,8 +143,8 @@ func GetConfigCustomServer(name *C.char, url *C.char, forceTCP C.int) (*C.char,
return C.CString(config), C.CString(configType), C.CString(ErrorToString(configErr))
}
-//export GetOrganizationsList
-func GetOrganizationsList(name *C.char) (*C.char, *C.char) {
+//export GetDiscoOrganizations
+func GetDiscoOrganizations(name *C.char) (*C.char, *C.char) {
nameStr := C.GoString(name)
state, stateErr := GetVPNState(nameStr)
if stateErr != nil {
@@ -154,8 +154,8 @@ func GetOrganizationsList(name *C.char) (*C.char, *C.char) {
return C.CString(organizations), C.CString(ErrorToString(organizationsErr))
}
-//export GetServersList
-func GetServersList(name *C.char) (*C.char, *C.char) {
+//export GetDiscoServers
+func GetDiscoServers(name *C.char) (*C.char, *C.char) {
nameStr := C.GoString(name)
state, stateErr := GetVPNState(nameStr)
if stateErr != nil {