We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents d3408e3 + 36ff11b commit b24a74eCopy full SHA for b24a74e
build/template/main.go
@@ -15,6 +15,12 @@ func CGoResetDns() *C.char {
15
return C.CString(ResetDns())
16
}
17
18
+//export CGoRunXrayFromJSON
19
+func CGoRunXrayFromJSON(base64Text *C.char) *C.char {
20
+ text := C.GoString(base64Text)
21
+ return C.CString(RunXrayFromJSON(text))
22
+}
23
+
24
//export CGoGetFreePorts
25
func CGoGetFreePorts(count int) *C.char {
26
return C.CString(GetFreePorts(count))
0 commit comments