mirror of
https://github.com/go-i2p/goSam.git
synced 2025-07-11 21:40:12 -04:00
Improve the parser, automatically set empty destinations to TRANSIENT when using a dialer, better error handling, when a socket gets closed, increment the ID and re-create it
This commit is contained in:
@ -7,7 +7,7 @@ import (
|
||||
// StreamConnect asks SAM for a TCP-Like connection to dest, has to be called on a new Client
|
||||
func (c *Client) StreamConnect(id int32, dest string) error {
|
||||
if dest == "" {
|
||||
dest = "TRANSIENT"
|
||||
return nil
|
||||
}
|
||||
r, err := c.sendCmd("STREAM CONNECT ID=%d DESTINATION=%s %s %s\n", id, dest, c.from(), c.to())
|
||||
if err != nil {
|
||||
|
Reference in New Issue
Block a user