From 5008a4ea2d13aa5d043689b11830b4d30c1efa75 Mon Sep 17 00:00:00 2001 From: Vasyl Gello Date: Mon, 22 Jul 2024 07:23:16 +0300 Subject: [PATCH] Do not leak sessions Signed-off-by: Vasyl Gello --- cmd/yggstack/main.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cmd/yggstack/main.go b/cmd/yggstack/main.go index 0992109..cab711a 100644 --- a/cmd/yggstack/main.go +++ b/cmd/yggstack/main.go @@ -387,7 +387,7 @@ func main() { connVal, ok := localUdpConnections.Load(remoteUdpAddrStr) if !ok { - logger.Infof("Creating new session for %s", remoteUdpAddr.String()) + logger.Debugf("Creating new session for %s", remoteUdpAddr.String()) udpFwdConn, err := s.DialUDP(mapping.Mapped) if err != nil { logger.Errorf("Failed to connect to %s: %s", mapping.Mapped, err) @@ -474,7 +474,7 @@ func main() { connVal, ok := remoteUdpConnections.Load(remoteUdpAddrStr) if !ok { - logger.Infof("Creating new session for %s", remoteUdpAddr.String()) + logger.Debugf("Creating new session for %s", remoteUdpAddr.String()) udpFwdConn, err := net.DialUDP("udp", nil, mapping.Mapped) if err != nil { logger.Errorf("Failed to connect to %s: %s", mapping.Mapped, err)