“未知的tls.Config字段”错误是什么意思?

While I compile a go language code using "go install", I got the following error:

./xyzcheck.go:34: unknown tls.Config field 'EarlyCCS' in struct literal

here is the code that make that error

conn, err = tls.Dial("tcp", target, &tls.Config{InsecureSkipVerify: true, EarlyCCS: 2})
if err == nil {
    fmt.Printf("\x1b[31mXYZ Check is OK.\x1b[0m
")
    os.Exit(1)
}

I googled this error but no luck.

If anyone can tell me what is the reason for this error? and how can I fix it. it will be great.

Thanks

ABC: 2 is not a valid parameter for config. There is documentation on config settings for tls here: http://golang.org/pkg/crypto/tls/#Config

The author has a patch that needs to be applied to the tls package. This was clearly explained on his blog page where you obtained this script.

Apply the patch to the tls package, re-run the script and it will work.