1
0
mirror of https://github.com/Mailu/Mailu.git synced 2025-11-29 22:37:58 +02:00

Handle relay name as an Idna domain

This commit is contained in:
kaiyou
2018-12-09 16:54:54 +01:00
parent 871aa14c9a
commit 7e388e472a

View File

@@ -208,7 +208,7 @@ class Relay(Base):
__tablename__ = "relay"
name = db.Column(db.String(80), primary_key=True, nullable=False)
name = db.Column(IdnaDomain, primary_key=True, nullable=False)
smtp = db.Column(db.String(80), nullable=True)
def __str__(self):