interface: fix for aiorpcx 0.18

This commit is contained in:
SomberNight 2019-05-28 06:14:53 +02:00
parent 41802d8094
commit d17e6a1b87
No known key found for this signature in database
GPG key ID: B33B5F232C6271E9

View file

@ -396,7 +396,7 @@ class Interface(Logger):
async with _RSClient(session_factory=RPCSession,
host=self.host, port=self.port,
ssl=sslc, proxy=self.proxy) as session:
return session.transport._ssl_protocol._sslpipe._sslobj.getpeercert(True)
return session.transport._asyncio_transport._ssl_protocol._sslpipe._sslobj.getpeercert(True)
except ValueError:
return None