Needed pointer of tcp client

This commit is contained in:
Hamed Bahadorzadeh
2018-09-07 13:19:20 +04:30
parent fc88f72c6d
commit f9ab68da2d

View File

@@ -16,8 +16,8 @@ type TcpClient struct {
closed bool
}
func GetTcpClient(url, surl string, tun_dialer tcommon.TunnelDialer) TcpClient {
s := TcpClient{}
func GetTcpClient(url, surl string, tun_dialer tcommon.TunnelDialer) *TcpClient {
s := &TcpClient{}
s.address = url
s.saddress = surl
s.tun_dialer = tun_dialer