Skip to content

Commit

Permalink
Fixes for wsl linter after merge prs
Browse files Browse the repository at this point in the history
  • Loading branch information
outdead committed Nov 15, 2024
1 parent 748e1df commit f69f93c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions rcon.go
Original file line number Diff line number Diff line change
Expand Up @@ -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}

Expand All @@ -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)
}

Expand Down

0 comments on commit f69f93c

Please sign in to comment.