Skip to content

Commit

Permalink
Removed unnecessary warning on writes
Browse files Browse the repository at this point in the history
  • Loading branch information
ameshkov committed Feb 5, 2024
1 parent b41073a commit 984b8ec
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions internal/tunnel/msgreadwriter.go
Original file line number Diff line number Diff line change
Expand Up @@ -60,15 +60,6 @@ func (rw *MsgReadWriter) Read(b []byte) (n int, err error) {

// Write implements the io.ReadWriter interface for *MsgReadWriter.
func (rw *MsgReadWriter) Write(b []byte) (n int, err error) {
if len(b) > MaxMessageLength {
// Warn the user that this may not work correctly.
log.Error(
"Warning: trying to write a message of length %d larger than %d, considering reducing the MTU",
len(b),
MaxMessageLength,
)
}

// Create random padding to make it harder to understand what's inside
// the tunnel.
minLength := MinMessageLength - len(b)
Expand Down

0 comments on commit 984b8ec

Please sign in to comment.