change sdk

pull/291/head
unknown 2019-12-04 18:11:24 +08:00
parent 036a17a3d9
commit 391fdbd920
1 changed files with 2 additions and 2 deletions

View File

@ -11,12 +11,12 @@ var closeBefore bool
var cl *client.TRPClient
//export StartClientByVerifyKey
func StartClientByVerifyKey(serverAddr, verifyKey, connType, proxyUrl string) bool {
func StartClientByVerifyKey(serverAddr, verifyKey, connType, proxyUrl *C.char) bool {
if cl != nil {
closeBefore = true
cl.Close()
}
cl = client.NewRPClient(serverAddr, verifyKey, connType, proxyUrl, nil)
cl = client.NewRPClient(C.GoString(serverAddr), C.GoString(verifyKey), C.GoString(connType), C.GoString(proxyUrl), nil)
closeBefore = false
go func() {
for {