Don't ask for hostname if using a tunnel
In tunnel mode, we don't need to ask for a hostname because there is no need for one. Fix this. Signed-off-by: Sebastian Spaeth <Sebastian@SSpaeth.de>
This commit is contained in:
parent
b92e453f0e
commit
eeef8f4bab
@ -60,7 +60,7 @@ class IMAPServer:
|
|||||||
self.password = None
|
self.password = None
|
||||||
self.passworderror = None
|
self.passworderror = None
|
||||||
self.goodpassword = None
|
self.goodpassword = None
|
||||||
self.hostname = repos.gethost()
|
self.hostname = None if self.tunnel else repos.gethost()
|
||||||
self.port = repos.getport()
|
self.port = repos.getport()
|
||||||
if self.port == None:
|
if self.port == None:
|
||||||
self.port = 993 if self.usessl else 143
|
self.port = 993 if self.usessl else 143
|
||||||
|
Loading…
x
Reference in New Issue
Block a user