From 908c28bab89525250172a4013667319942846065 Mon Sep 17 00:00:00 2001 From: mkaay Date: Sun, 13 Feb 2011 15:06:03 +0100 Subject: fixes + improvements --- module/remote/thriftbackend/Processor.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'module/remote/thriftbackend/Processor.py') diff --git a/module/remote/thriftbackend/Processor.py b/module/remote/thriftbackend/Processor.py index 53c6e404d..8aea42960 100644 --- a/module/remote/thriftbackend/Processor.py +++ b/module/remote/thriftbackend/Processor.py @@ -32,7 +32,7 @@ class Processor(Pyload.Processor): args.read(iprot) iprot.readMessageEnd() result = Pyload.login_result() - self.authenticated[trans] = self._handler.login(args.username, args.password) + self.authenticated[trans] = self._handler.login(args.username, args.password, trans.remoteaddr[0]) result.success = self.authenticated[trans] oprot.writeMessageBegin("login", Pyload.TMessageType.REPLY, seqid) result.write(oprot) @@ -40,4 +40,4 @@ class Processor(Pyload.Processor): oprot.trans.flush() else: self._processMap[name](self, seqid, iprot, oprot) - return True \ No newline at end of file + return True -- cgit v1.2.3