From f69f93c2ed1394df128c70419a757e3761b2a8b1 Mon Sep 17 00:00:00 2001 From: outdead Date: Sat, 16 Nov 2024 00:04:07 +0300 Subject: [PATCH] Fixes for wsl linter after merge prs --- rcon.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/rcon.go b/rcon.go index a5175fd..4beb80d 100644 --- a/rcon.go +++ b/rcon.go @@ -96,7 +96,7 @@ type Conn struct { settings Settings } -// open creates a new Conn from an existing net.Conn and authenticates it +// open creates a new Conn from an existing net.Conn and authenticates it. func open(conn net.Conn, password string, settings Settings) (*Conn, error) { client := Conn{conn: conn, settings: settings} @@ -112,12 +112,13 @@ func open(conn net.Conn, password string, settings Settings) (*Conn, error) { return &client, nil } -// Open creates a new authorized Conn from an existing net.Conn +// Open creates a new authorized Conn from an existing net.Conn. func Open(conn net.Conn, password string, options ...Option) (*Conn, error) { settings := DefaultSettings for _, option := range options { option(&settings) } + return open(conn, password, settings) }