Add support for the hostaddr connection parameter. This helps us play nicely with Kerberos/SSPI and friends. Fixes #2191

This commit is contained in:
Atul Sharma
2017-06-26 15:48:59 -04:00
committed by Dave Page
parent 3f4781cdcb
commit 15cb9fc35b
7 changed files with 149 additions and 7 deletions

View File

@@ -108,6 +108,7 @@ class Server(db.Model):
)
name = db.Column(db.String(128), nullable=False)
host = db.Column(db.String(128), nullable=False)
hostaddr = db.Column(db.String(128), nullable=True)
port = db.Column(
db.Integer(),
db.CheckConstraint('port >= 1024 AND port <= 65534'),
@@ -128,6 +129,8 @@ class Server(db.Model):
backref=db.backref('server', cascade="all, delete-orphan"),
lazy='joined')
class ModulePreference(db.Model):
"""Define a preferences table for any modules."""
__tablename__ = 'module_preference'