mirror of
https://github.com/optim-enterprises-bv/Mailu.git
synced 2025-11-01 02:27:47 +00:00
Resolve hosts in admin
This commit is contained in:
committed by
Tim Möhlmann
parent
004a431e97
commit
f8dffe5a19
@@ -2,7 +2,6 @@ from mailu import models
|
||||
from flask import current_app as app
|
||||
|
||||
import re
|
||||
import socket
|
||||
import urllib
|
||||
|
||||
|
||||
@@ -89,5 +88,4 @@ def get_server(protocol, authenticated=False):
|
||||
hostname, port = extract_host_port(app.config['HOST_AUTHSMTP'], 10025)
|
||||
else:
|
||||
hostname, port = extract_host_port(app.config['HOST_SMTP'], 25)
|
||||
address = socket.gethostbyname(hostname)
|
||||
return address, port
|
||||
return hostname, port
|
||||
|
||||
Reference in New Issue
Block a user