diff --git a/src/dashboard.py b/src/dashboard.py index 401eac3..cbd9d20 100644 --- a/src/dashboard.py +++ b/src/dashboard.py @@ -311,7 +311,7 @@ class WireguardConfiguration: def __init__(self, name: str = None, data: dict = None, backup: dict = None, startup: bool = False, wg: bool = True): - self.__parser: configparser.ConfigParser = configparser.ConfigParser(strict=False) + self.__parser: configparser.ConfigParser = configparser.RawConfigParser(strict=False) self.__parser.optionxform = str self.__configFileModifiedTime = None @@ -361,10 +361,10 @@ class WireguardConfiguration: "PrivateKey": self.PrivateKey, "Address": self.Address, "ListenPort": self.ListenPort, - "PreUp": self.PreUp, - "PreDown": self.PreDown, - "PostUp": self.PostUp, - "PostDown": self.PostDown, + "PreUp": f"{self.PreUp}", + "PreDown": f"{self.PreDown}", + "PostUp": f"{self.PostUp}", + "PostDown": f"{self.PostDown}", "SaveConfig": "true" } diff --git a/src/static/app/src/views/index.vue b/src/static/app/src/views/index.vue index b18682b..7da929d 100644 --- a/src/static/app/src/views/index.vue +++ b/src/static/app/src/views/index.vue @@ -46,7 +46,6 @@ export default { main{ height: 100vh; } - @supports (height: 100dvh) { @media screen and (max-width: 768px) { main{ @@ -54,6 +53,4 @@ export default { } } } - - \ No newline at end of file