mirror of
https://github.com/hbahadorzadeh/stunning.git
synced 2025-12-24 13:38:08 +08:00
Needed pointer of tcp client
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user