Network opts

This commit is contained in:
Fabian 2024-11-04 12:14:29 +01:00
parent f1d052c044
commit ab0a4009b5

View File

@ -90,6 +90,8 @@ def write_network_units(args, yaml_dict):
unit_file["Network"]["Internal"] = str(network.get("internal", True)).lower()
if "enable_ipv6" in network:
unit_file["Network"]["IPv6"] = str(network["enable_ipv6"]).lower()
unit_file["Network"]["DisableDns"] = "false"
unit_file["Network"]["Options"] = "isolate=true"
unit_file["Service"] = {}
unit_file["Service"]["Restart"] = "on-failure"