upd connection info log

This commit is contained in:
2026-09-01 23:00:05 +01:00
parent fd49d432ac
commit fd6fc88873
2 changed files with 1 additions and 3 deletions

View File

@@ -3,8 +3,6 @@ package q3rcon
import ( import (
"fmt" "fmt"
"net" "net"
"github.com/charmbracelet/log"
) )
type UDPConn struct { type UDPConn struct {
@@ -20,7 +18,6 @@ func newUDPConn(host string, port int) (*UDPConn, error) {
if err != nil { if err != nil {
return nil, err return nil, err
} }
log.Infof("Outgoing address %s", conn.RemoteAddr())
return &UDPConn{ return &UDPConn{
conn: conn, conn: conn,

View File

@@ -41,6 +41,7 @@ func New(host string, port int, password string, options ...Option) (*Rcon, erro
if err != nil { if err != nil {
return nil, fmt.Errorf("error creating UDP connection: %w", err) return nil, fmt.Errorf("error creating UDP connection: %w", err)
} }
log.Infof("Rcon outgoing address %s", conn.conn.RemoteAddr())
r := &Rcon{ r := &Rcon{
conn: conn, conn: conn,