Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
CIP-Admins
pcidentd
Commits
12049a77
Commit
12049a77
authored
Nov 01, 2017
by
Simon Ruderich
Browse files
Use \r\n as line ending
RFC 1413 explicitly requires \r\n as line ending (EOL).
parent
57e329ab
Changes
1
Hide whitespace changes
Inline
Side-by-side
main.go
View file @
12049a77
...
...
@@ -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
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment