Commit 12049a77 authored by Simon Ruderich's avatar Simon Ruderich
Browse files

Use \r\n as line ending

RFC 1413 explicitly requires \r\n as line ending (EOL).
parent 57e329ab
......@@ -144,7 +144,7 @@ func handleIdentRequest(c net.Conn, hmacSecret []byte) error {
fmt.Fprintln(mac, uid)
macHex := hex.EncodeToString(mac.Sum(nil))
_, err = fmt.Fprintf(c, "%d,%d:USERID:OTHER:%s\n",
_, err = fmt.Fprintf(c, "%d,%d:USERID:OTHER:%s\r\n",
lPort, rPort, macHex[:MacBytes])
if err != nil {
return err
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment