Skip to content

Commit

Permalink
Deluge 2 slightly changed this...
Browse files Browse the repository at this point in the history
  • Loading branch information
cinderblock committed Jan 27, 2020
1 parent fa190cf commit e77a2fc
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/DelugeRPC.ts
Original file line number Diff line number Diff line change
Expand Up @@ -674,7 +674,12 @@ export default function DelugeRPC(
info: () => request('daemon.info'),
shutdown: () => request('daemon.shutdown'),
login: (username: Awaitable<string>, password: Awaitable<string>) =>
request('daemon.login', [username, password]),
request(
'daemon.login',
[username, password],
// Deluge 2.0 needs this to be non-null. 1.0 doesn't care.
{ client_version: 'deluge-rpc-socket' },
),
};

// Final API with camelCase or snake_case
Expand Down

0 comments on commit e77a2fc

Please sign in to comment.