Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions internal/client/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,10 @@ func New(client *http.Client, address, username, password string) (*Client, erro
return nil, fmt.Errorf("failed to parse livebox address: %w", err)
}

if u.Scheme == "" {
return nil, errors.New("scheme is missing in livebox address")
}

u.Path = apiEndpoint

return &Client{
Expand Down
Loading