From 983d18e6a94e60c0f641ac332038b875ea685433 Mon Sep 17 00:00:00 2001 From: Kali Kaneko Date: Tue, 26 Apr 2016 22:55:40 -0400 Subject: [bug] cast the identity to bytes This fixes a bug in which the tls transport complains about receiving unicode. It was only made evident by running against twisted 16. --- mail/src/leap/mail/outgoing/service.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'mail/src/leap') diff --git a/mail/src/leap/mail/outgoing/service.py b/mail/src/leap/mail/outgoing/service.py index 335cae44..95d3e79f 100644 --- a/mail/src/leap/mail/outgoing/service.py +++ b/mail/src/leap/mail/outgoing/service.py @@ -224,7 +224,7 @@ class OutgoingMail(object): heloFallback=True, requireAuthentication=False, requireTransportSecurity=True) - factory.domain = __version__ + factory.domain = bytes('leap.mail-' + __version__) emit_async(catalog.SMTP_SEND_MESSAGE_START, self._from_address, recipient.dest.addrstr) reactor.connectSSL( -- cgit v1.2.3