mirror of
https://github.com/ehang-io/nps.git
synced 2025-09-03 04:26:53 +00:00
@@ -12,15 +12,12 @@ var cl *client.TRPClient
|
||||
|
||||
//export StartClientByVerifyKey
|
||||
func StartClientByVerifyKey(serverAddr, verifyKey, connType, proxyUrl *C.char) int {
|
||||
logs.SetLogger("store")
|
||||
_ = logs.SetLogger("store")
|
||||
if cl != nil {
|
||||
cl.Close()
|
||||
}
|
||||
cl = client.NewRPClient(C.GoString(serverAddr), C.GoString(verifyKey), C.GoString(connType), C.GoString(proxyUrl), nil, 60)
|
||||
go func() {
|
||||
cl.Start()
|
||||
return
|
||||
}()
|
||||
cl.Start()
|
||||
return 1
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user