mirror of
https://github.com/Mailu/Mailu.git
synced 2025-03-17 20:57:54 +02:00
Allow subnet with host bit set in setup
This commit is contained in:
parent
2788909a13
commit
463bbda302
@ -91,7 +91,7 @@ def build_app(path):
|
||||
data = flask.request.form.copy()
|
||||
data['uid'] = str(uuid.uuid4())
|
||||
try:
|
||||
data['dns'] = str(ipaddress.IPv4Network(data['subnet'])[-2])
|
||||
data['dns'] = str(ipaddress.IPv4Network(data['subnet'], strict=False)[-2])
|
||||
except ValueError as err:
|
||||
return "Error while generating files: " + str(err)
|
||||
db.set(data['uid'], json.dumps(data))
|
||||
|
1
towncrier/newsfragments/1083.bugfix
Normal file
1
towncrier/newsfragments/1083.bugfix
Normal file
@ -0,0 +1 @@
|
||||
Allow subnet with host bit set in setup
|
Loading…
x
Reference in New Issue
Block a user