summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjwijenbergh <jeroenwijenbergh@protonmail.com>2024-02-12 20:41:44 +0100
committerJeroen Wijenbergh <46386452+jwijenbergh@users.noreply.github.com>2024-02-19 14:15:07 +0100
commit9350e1d1a74f12d7da548b46686ce7b99308acd6 (patch)
tree595a749a930b4bfd09f19c6d29c75cc26f1b453b
parent48189a33a98e1c355f4d72fa970a39b747635fc8 (diff)
Format: Run gofumpt
-rw-r--r--docs/src/api/functiondocs.md22
-rw-r--r--exports/exports.go14
2 files changed, 18 insertions, 18 deletions
diff --git a/docs/src/api/functiondocs.md b/docs/src/api/functiondocs.md
index 8aa2138..3bf1899 100644
--- a/docs/src/api/functiondocs.md
+++ b/docs/src/api/functiondocs.md
@@ -527,21 +527,21 @@ Example Input (3=custom server): ```GetConfig(myCookie, 3,
Example Output (2=WireGuard):
- {
- "config": "[Interface]\nPrivateKey = ...\nAddress = ...\nDNS = ...\n\n[Peer]\nPublicKey = ...=\nAllowedIPs = 0.0.0.0/0,::/0\nEndpoint = ...",
- "protocol": 2,
- "default_gateway": true,
- "should_failover": true, <- whether or not the failover procedure should happen
- }
+ {
+ "config": "[Interface]\nPrivateKey = ...\nAddress = ...\nDNS = ...\n\n[Peer]\nPublicKey = ...=\nAllowedIPs = 0.0.0.0/0,::/0\nEndpoint = ...",
+ "protocol": 2,
+ "default_gateway": true,
+ "should_failover": true, <- whether or not the failover procedure should happen
+ }
Example Output (3=WireGuard + Proxyguard):
{
- "config":"[Interface]\nMTU = ...\nAddress = ...\nDNS = ...\nPrivateKey = ...\n[Peer]\nPublicKey = ...\nAllowedIPs = ...\nEndpoint = 127.0.0.1:x\n",
- "protocol":3,
- "default_gateway":true,
- "should_failover":true,
- "proxy":{"source_port":38683,"listen":"127.0.0.1:59812","peer":"https://..."}
+ "config":"[Interface]\nMTU = ...\nAddress = ...\nDNS = ...\nPrivateKey = ...\n[Peer]\nPublicKey = ...\nAllowedIPs = ...\nEndpoint = 127.0.0.1:x\n",
+ "protocol":3,
+ "default_gateway":true,
+ "should_failover":true,
+ "proxy":{"source_port":38683,"listen":"127.0.0.1:59812","peer":"https://..."}
}
## InState
diff --git a/exports/exports.go b/exports/exports.go
index 3461c37..63f57f3 100644
--- a/exports/exports.go
+++ b/exports/exports.go
@@ -569,13 +569,13 @@ func ServerList() (*C.char, *C.char) {
//
// Example Output (3=WireGuard + Proxyguard):
//
-// {
-// "config":"[Interface]\nMTU = ...\nAddress = ...\nDNS = ...\nPrivateKey = ...\n[Peer]\nPublicKey = ...\nAllowedIPs = ...\nEndpoint = 127.0.0.1:x\n",
-// "protocol":3,
-// "default_gateway":true,
-// "should_failover":true,
-// "proxy":{"source_port":38683,"listen":"127.0.0.1:59812","peer":"https://..."}
-// }
+// {
+// "config":"[Interface]\nMTU = ...\nAddress = ...\nDNS = ...\nPrivateKey = ...\n[Peer]\nPublicKey = ...\nAllowedIPs = ...\nEndpoint = 127.0.0.1:x\n",
+// "protocol":3,
+// "default_gateway":true,
+// "should_failover":true,
+// "proxy":{"source_port":38683,"listen":"127.0.0.1:59812","peer":"https://..."}
+// }
//
//export GetConfig
func GetConfig(c C.uintptr_t, _type C.int, id *C.char, pTCP C.int, startup C.int) (*C.char, *C.char) {