mirror of
https://github.com/refraction-networking/uquic.git
synced 2025-04-07 06:07:36 +03:00
remove newlines from log messages
This commit is contained in:
parent
09fb894fb2
commit
df5143d561
5 changed files with 25 additions and 25 deletions
|
@ -93,7 +93,7 @@ func (s *Server) handlePacket(conn *net.UDPConn, remoteAddr *net.UDPAddr, packet
|
|||
|
||||
// Send Version Negotiation Packet if the client is speaking a different protocol version
|
||||
if publicHeader.VersionFlag && !protocol.IsSupportedVersion(publicHeader.VersionNumber) {
|
||||
utils.Infof("Client offered version %d, sending VersionNegotiationPacket\n", publicHeader.VersionNumber)
|
||||
utils.Infof("Client offered version %d, sending VersionNegotiationPacket", publicHeader.VersionNumber)
|
||||
_, err = conn.WriteToUDP(composeVersionNegotiation(publicHeader.ConnectionID), remoteAddr)
|
||||
if err != nil {
|
||||
return err
|
||||
|
@ -103,7 +103,7 @@ func (s *Server) handlePacket(conn *net.UDPConn, remoteAddr *net.UDPAddr, packet
|
|||
|
||||
session, ok := s.sessions[publicHeader.ConnectionID]
|
||||
if !ok {
|
||||
utils.Infof("Serving new connection: %d from %v\n", publicHeader.ConnectionID, remoteAddr)
|
||||
utils.Infof("Serving new connection: %d from %v", publicHeader.ConnectionID, remoteAddr)
|
||||
session = s.newSession(
|
||||
&udpConn{conn: conn, currentAddr: remoteAddr},
|
||||
publicHeader.VersionNumber,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue