diff options
author | Rob Austein <sra@hactrn.net> | 2012-03-06 05:41:17 +0000 |
---|---|---|
committer | Rob Austein <sra@hactrn.net> | 2012-03-06 05:41:17 +0000 |
commit | c38e970b72378df35762af69ef4309ca3415d77d (patch) | |
tree | 0f17e385a41f60328d6f1da66441eb5ace14520f /rcynic/rpki-torrent.py | |
parent | e0e2820305fac5dc735eb9f524b179c4614f22b3 (diff) |
Change default host for transmission RPC connection from "localhost"
to "127.0.0.1". Feh.
svn path=/trunk/; revision=4387
Diffstat (limited to 'rcynic/rpki-torrent.py')
-rw-r--r-- | rcynic/rpki-torrent.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/rcynic/rpki-torrent.py b/rcynic/rpki-torrent.py index 2f6bc086..475e522d 100644 --- a/rcynic/rpki-torrent.py +++ b/rcynic/rpki-torrent.py @@ -502,6 +502,11 @@ class TransmissionClient(transmissionrpc.client.Client): Extension of transmissionrpc.client.Client. """ + def __init__(self, **kwargs): + kwargs.setdefault("address", "127.0.0.1") + transmissionrpc.client.Client.__init__(self, **kwargs) + + def find_torrents(self, *names): """ Find torrents with given name(s), return id(s). |