summaryrefslogtreecommitdiff
path: root/exports/exports.go
diff options
context:
space:
mode:
Diffstat (limited to 'exports/exports.go')
-rw-r--r--exports/exports.go18
1 files changed, 15 insertions, 3 deletions
diff --git a/exports/exports.go b/exports/exports.go
index 124a3a5..1c5ead5 100644
--- a/exports/exports.go
+++ b/exports/exports.go
@@ -235,7 +235,11 @@ func RemoveCustomServer(name *C.char, url *C.char) *C.error {
}
//export GetConfigSecureInternet
-func GetConfigSecureInternet(name *C.char, orgID *C.char, preferTCP C.int) (*C.char, *C.char, *C.error) {
+func GetConfigSecureInternet(
+ name *C.char,
+ orgID *C.char,
+ preferTCP C.int,
+) (*C.char, *C.char, *C.error) {
nameStr := C.GoString(name)
state, stateErr := GetVPNState(nameStr)
if stateErr != nil {
@@ -247,7 +251,11 @@ func GetConfigSecureInternet(name *C.char, orgID *C.char, preferTCP C.int) (*C.c
}
//export GetConfigInstituteAccess
-func GetConfigInstituteAccess(name *C.char, url *C.char, preferTCP C.int) (*C.char, *C.char, *C.error) {
+func GetConfigInstituteAccess(
+ name *C.char,
+ url *C.char,
+ preferTCP C.int,
+) (*C.char, *C.char, *C.error) {
nameStr := C.GoString(name)
state, stateErr := GetVPNState(nameStr)
if stateErr != nil {
@@ -259,7 +267,11 @@ func GetConfigInstituteAccess(name *C.char, url *C.char, preferTCP C.int) (*C.ch
}
//export GetConfigCustomServer
-func GetConfigCustomServer(name *C.char, url *C.char, preferTCP C.int) (*C.char, *C.char, *C.error) {
+func GetConfigCustomServer(
+ name *C.char,
+ url *C.char,
+ preferTCP C.int,
+) (*C.char, *C.char, *C.error) {
nameStr := C.GoString(name)
state, stateErr := GetVPNState(nameStr)
if stateErr != nil {