Refactor: refactor project structure & update clash core (#1174)
* Refactor: refactor project structure * Chore: remove apply * Chore: update clash core * Fix: fix versionName & versionCode patch * Chore: update golang plugin * Fix: fix workflow build
This commit is contained in:
@@ -1,23 +0,0 @@
|
||||
package main
|
||||
|
||||
//#include "bridge.h"
|
||||
import "C"
|
||||
|
||||
import "cfa/proxy"
|
||||
|
||||
//export startHttp
|
||||
func startHttp(listenAt C.c_string) *C.char {
|
||||
l := C.GoString(listenAt)
|
||||
|
||||
listen, err := proxy.Start(l)
|
||||
if err != nil {
|
||||
return nil
|
||||
}
|
||||
|
||||
return C.CString(listen)
|
||||
}
|
||||
|
||||
//export stopHttp
|
||||
func stopHttp() {
|
||||
proxy.Stop()
|
||||
}
|
||||
Reference in New Issue
Block a user