Allow subnet with host bit set in setup

master
hoellen 5 years ago
parent 2788909a13
commit 463bbda302

@ -91,7 +91,7 @@ def build_app(path):
data = flask.request.form.copy() data = flask.request.form.copy()
data['uid'] = str(uuid.uuid4()) data['uid'] = str(uuid.uuid4())
try: try:
data['dns'] = str(ipaddress.IPv4Network(data['subnet'])[-2]) data['dns'] = str(ipaddress.IPv4Network(data['subnet'], strict=False)[-2])
except ValueError as err: except ValueError as err:
return "Error while generating files: " + str(err) return "Error while generating files: " + str(err)
db.set(data['uid'], json.dumps(data)) db.set(data['uid'], json.dumps(data))

@ -0,0 +1 @@
Allow subnet with host bit set in setup
Loading…
Cancel
Save