diff options
author | Kali Kaneko <kali@leap.se> | 2016-04-26 22:55:40 -0400 |
---|---|---|
committer | Kali Kaneko <kali@leap.se> | 2016-04-26 22:55:40 -0400 |
commit | d029771d3be72a7acf21f58f36530793e03dda0e (patch) | |
tree | a9218a285570cbf59c2b91854682f94df7b13420 | |
parent | bb2f631b19b87b4ecc7fd33a2f8b919d5aec0a9a (diff) |
[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.
-rw-r--r-- | src/leap/mail/outgoing/service.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/leap/mail/outgoing/service.py b/src/leap/mail/outgoing/service.py index 335cae4..95d3e79 100644 --- a/src/leap/mail/outgoing/service.py +++ b/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( |