summaryrefslogtreecommitdiff
path: root/exports
diff options
context:
space:
mode:
authorjwijenbergh <jeroenwijenbergh@protonmail.com>2022-11-28 14:30:55 +0100
committerjwijenbergh <jeroenwijenbergh@protonmail.com>2022-11-28 14:30:55 +0100
commitbb760ad9036b586fd4f07b96623e8421e1dccaf0 (patch)
treec06fa76d5fe89dadb3e7ad6d4f2c1d5fe6f94912 /exports
parent0bfb35520d7e138e6219e550187e0b55bc8a29ac (diff)
Formatting: Run golines
Diffstat (limited to 'exports')
-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 {