Skip to content

Commit

Permalink
Fix address initial processing.
Browse files Browse the repository at this point in the history
  • Loading branch information
Denis Krivak committed Sep 6, 2023
1 parent 24f76de commit 7555808
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions connectbox.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,6 @@ const (
sessionIDName = "SID"
)

// List of XML RPC function codes.
const (
FnLogin = "15"
FnLogout = "16"
FnCMState = "136"
)

// List of XML API endpoints.
const (
xmlGetter = "/xml/getter.xml"
Expand Down Expand Up @@ -52,7 +45,7 @@ func NewConnectBox(addr, username, password string) (*ConnectBox, error) {
}

z := ConnectBox{
addr: strings.TrimRight(addr, "/"),
addr: strings.TrimSuffix(addr, "/"),
username: username,
password: hashPassword(password),
}
Expand Down

0 comments on commit 7555808

Please sign in to comment.