mirror of
https://github.com/idanoo/autobrr
synced 2025-07-23 00:39:13 +00:00
fix(downloadclient): qBittorrent url parse err handling (#1832)
* fix(downloadclient): qBittorrent url parse err handling * fix(downloadclient): qBittorrent url parse err handling test
This commit is contained in:
parent
a18284ecc6
commit
f54c51fa06
4 changed files with 22 additions and 8 deletions
|
@ -71,8 +71,13 @@ func (s *service) testConnection(ctx context.Context, client domain.DownloadClie
|
|||
}
|
||||
|
||||
func (s *service) testQbittorrentConnection(ctx context.Context, client domain.DownloadClient) error {
|
||||
clientHost, err := client.BuildLegacyHost()
|
||||
if err != nil {
|
||||
return errors.Wrap(err, "error building qBittorrent host url: %s", client.Host)
|
||||
}
|
||||
|
||||
qbtSettings := qbittorrent.Config{
|
||||
Host: client.BuildLegacyHost(),
|
||||
Host: clientHost,
|
||||
TLSSkipVerify: client.TLSSkipVerify,
|
||||
Username: client.Username,
|
||||
Password: client.Password,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue