try and enable persistent destination
This commit is contained in:
@ -12,7 +12,7 @@ func (c *Client) Accept() (net.Conn, error) {
|
||||
var err error
|
||||
var id int32
|
||||
id = c.NewID()
|
||||
c.destination, err = c.CreateStreamSession(id, "")
|
||||
c.destination, err = c.CreateStreamSession(id, c.destination)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
2
dial.go
2
dial.go
@ -54,7 +54,7 @@ func (c *Client) Dial(network, addr string) (net.Conn, error) {
|
||||
var id int32
|
||||
var test bool
|
||||
if id, test = c.dialCheck(addr); test == true {
|
||||
c.destination, err = c.CreateStreamSession(id, "")
|
||||
c.destination, err = c.CreateStreamSession(id, c.destination)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
Reference in New Issue
Block a user