Skip to content

Commit

Permalink
Fixed TCP typo in debug logging
Browse files Browse the repository at this point in the history
  • Loading branch information
twystd committed Jul 16, 2024
1 parent 88ea47b commit f9eb590
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion uhppote/UT0311.go
Original file line number Diff line number Diff line change
Expand Up @@ -294,7 +294,7 @@ func (u *ut0311) SendTCP(addr *net.TCPAddr, request []byte) ([]byte, error) {
}

if N, err := connection.Write(request); err != nil {
return nil, fmt.Errorf("failed to write to UDP socket [%v]", err)
return nil, fmt.Errorf("failed to write to TCP socket [%v]", err)
} else {
u.debugf(fmt.Sprintf(" ... sent %v bytes to %v (TCP)", N, connection.RemoteAddr()), nil)
u.debugf(fmt.Sprintf(" ... request\n%s\n", codec.Dump(request, " ... ")), nil)
Expand Down

0 comments on commit f9eb590

Please sign in to comment.