Skip to content

Commit

Permalink
Fix payload length log message
Browse files Browse the repository at this point in the history
  • Loading branch information
kirill-scherba committed Jul 28, 2022
1 parent 598880b commit a4cb54e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmd/trutun/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ import (
const (
appShor = "trutun"
appName = "Tunnel application"
appVersion = "0.0.8"
appVersion = "0.0.9"
)

var name = flag.String("name", appShor, "interface name")
Expand Down Expand Up @@ -168,7 +168,7 @@ func (t *TruTun) Interface(name string) (ifce *water.Interface, err error) {
log.Debug.Printf("Dst: %s\n", frame.Destination())
log.Debug.Printf("Src: %s\n", frame.Source())
log.Debug.Printf("Ethertype: % x\n", frame.Ethertype())
log.Debug.Printf("Payload len: % x\n", len(frame.Payload()))
log.Debug.Printf("Payload len: %d\n", len(frame.Payload()))
// log.Debugvv.Printf("Payload: % x\n", frame.Payload())

// Resend frame to all channels
Expand Down

0 comments on commit a4cb54e

Please sign in to comment.