From c8c3b4b3aaed92c804b498df7b887f885e193e17 Mon Sep 17 00:00:00 2001 From: saxon Date: Sat, 11 Aug 2018 11:44:55 +0930 Subject: [PATCH] Using my C_SocksNegotiate func - tested and working --- rtmp/rtmp.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rtmp/rtmp.go b/rtmp/rtmp.go index 07b525e1..19431b58 100644 --- a/rtmp/rtmp.go +++ b/rtmp/rtmp.go @@ -1076,8 +1076,8 @@ func C_RTMP_Connect0(r *C.RTMP, service *C.sockaddr) int { log.Println("C_RTMP_Connect0: socks negotiation.") } - // TODO: port this - if C.SocksNegotiate(r) == 0 { + //if C.SocksNegotiate(r) == 0 { + if C_SocksNegotiate(r) == 0 { log.Println("C_RTMP_Connect0: SOCKS negotiation failed.") return 0 }