diff --git a/internal/client/client.go b/internal/client/client.go index 9796126..5d2d3e2 100644 --- a/internal/client/client.go +++ b/internal/client/client.go @@ -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{