Mika- / torrent-control

Firefox extension for adding torrents to remote clients.
https://addons.mozilla.org/addon/torrent-control/
179 stars 25 forks source link

Fail to login when password is empty. #130

Closed Bricio closed 2 years ago

Bricio commented 2 years ago

uTorrent

If your client only has username and a empty password configured the extension does not try to authenticate and returns "401 Unauthorized." Example configuration: image

This https://github.com/Mika-/torrent-control/blob/819d79a97ca25c66444b3f446075d033f929945a/src/lib/utorrent.js#L102

should be

        if (username || password)

Dont know if other programs accepts empty password, but uTorrent does.