Clear host and port if no proxy type was set

This commit is contained in:
TreeNode 2014-12-11 12:03:36 +02:00
parent 54dd376b9c
commit ae681dd5d3

View File

@ -230,6 +230,9 @@ class Queue(models.Model):
self.socks_proxy_host = '127.0.0.1' self.socks_proxy_host = '127.0.0.1'
if not self.socks_proxy_port: if not self.socks_proxy_port:
self.socks_proxy_port = 9150 self.socks_proxy_port = 9150
else:
self.socks_proxy_host = None
self.socks_proxy_port = None
if not self.email_box_port: if not self.email_box_port:
if self.email_box_type == 'imap' and self.email_box_ssl: if self.email_box_type == 'imap' and self.email_box_ssl: