mirror of
https://github.com/go-i2p/goSam.git
synced 2025-07-13 14:18:25 -04:00
send options before newline
according to SAM Connection Handshake[1] these options are not part of the `HELLO VERSION ..` exchange. only later during session creates etc [1] - https://geti2p.net/en/docs/api/samv3 in any case these wouldn't be send after the newline
This commit is contained in:
@ -94,7 +94,7 @@ func (c *Client) samaddr() string {
|
||||
|
||||
// send the initial handshake command and check that the reply is ok
|
||||
func (c *Client) hello() error {
|
||||
r, err := c.sendCmd("HELLO VERSION MIN=3.0 MAX=3.0\n", c.allOptions())
|
||||
r, err := c.sendCmd("HELLO VERSION MIN=3.0 MAX=3.2\n")
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
Reference in New Issue
Block a user