Feature: support tls1.3 (#114)

This commit is contained in:
Dreamacro 2019-03-01 11:24:31 +08:00 committed by Yicheng
parent 5aba5da090
commit 40bd29e908

View File

@ -1,18 +1,14 @@
package main // import "github.com/yichengchen/clashX/ClashX"
import (
"C"
"os"
"github.com/Dreamacro/clash/hub"
)
import "github.com/Dreamacro/clash/hub/route"
var (
homedir string
"github.com/Dreamacro/clash/hub/route"
)
//export run
func run() *C.char {
if err := hub.Parse(); err != nil {
return C.CString(err.Error())
}
@ -26,5 +22,6 @@ func setUIPath(path *C.char) {
}
func main() {
// enable tls 1.3 and remove when go 1.13
os.Setenv("GODEBUG", os.Getenv("GODEBUG")+",tls13=1")
}