try and enable persistent destination

This commit is contained in:
idk
2019-03-14 21:59:12 -04:00
parent 376c392d58
commit e42d89a43c
2 changed files with 2 additions and 2 deletions

View File

@ -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
}

View File

@ -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
}