Skip to content

Commit

Permalink
fix by using logger
Browse files Browse the repository at this point in the history
  • Loading branch information
xtaci committed Dec 9, 2024
1 parent 0dfef2c commit 7e0f9cb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hopper.go
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ func (l *Listener) packetIn(data []byte, raddr net.Addr) {
// add the connection to the incoming connections
l.addClient(raddr, conn)
// log new connection
log.Printf("new connection from %s to %s", raddr.String(), l.nextHop)
l.logger.Printf("new connection from %s to %s", raddr.String(), l.nextHop)

// watch the connection
// the context is the address of incoming packet
Expand Down

0 comments on commit 7e0f9cb

Please sign in to comment.