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:
Henry
2018-08-21 16:19:56 +02:00
parent 89742a3ec4
commit a05f2d68df

View File

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