refactor: perform cleanup
All checks were successful
Go CI Pipeline / ci (push) Successful in 28s
Release Builds / GoReleaser build (push) Successful in 1m7s

This commit is contained in:
Patryk Hegenberg 2025-06-30 08:07:53 +02:00
parent d8743e54c1
commit 54979319ff
7 changed files with 13 additions and 45 deletions

View file

@ -52,7 +52,7 @@ func (pf *PortForwarder) forward() error {
continue
}
pf.logf("INFO", "Accepted connection from %s on %s", localConn.RemoteAddr(), localAddr)
pf.logf("INFO", fmt.Sprintf("Accepted connection from %s on %s", localConn.RemoteAddr(), localAddr))
go pf.handleConnection(localConn, remoteAddr)
}
}