I use the built-in standard SSL client socket library (net + crypto / tls) as follows:
conn, err := net.Dial("tcp", "exploit.im:5222") //... config := tls.Config{InsecureSkipVerify: true} tls_conn := tls.Client(conn, &config) fmt.Println(tls_conn.Handshake())
And I get a message:
conn, err: = net.Dial ("tcp", "exploit.im=2222")
I managed to find out that this is due to the default maximum packet size (16384 + 2048 set in common.go: 31). Is there any standard work (without fixing this value and rebuilding lib)?
source share