mirror of
https://github.com/donaldzou/WGDashboard.git
synced 2025-06-28 17:26:56 +00:00
Fixed #493
This commit is contained in:
parent
d5168d2da6
commit
5732867407
@ -311,7 +311,7 @@ class WireguardConfiguration:
|
|||||||
def __init__(self, name: str = None, data: dict = None, backup: dict = None, startup: bool = False, wg: bool = True):
|
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.__parser.optionxform = str
|
||||||
self.__configFileModifiedTime = None
|
self.__configFileModifiedTime = None
|
||||||
|
|
||||||
@ -361,10 +361,10 @@ class WireguardConfiguration:
|
|||||||
"PrivateKey": self.PrivateKey,
|
"PrivateKey": self.PrivateKey,
|
||||||
"Address": self.Address,
|
"Address": self.Address,
|
||||||
"ListenPort": self.ListenPort,
|
"ListenPort": self.ListenPort,
|
||||||
"PreUp": self.PreUp,
|
"PreUp": f"{self.PreUp}",
|
||||||
"PreDown": self.PreDown,
|
"PreDown": f"{self.PreDown}",
|
||||||
"PostUp": self.PostUp,
|
"PostUp": f"{self.PostUp}",
|
||||||
"PostDown": self.PostDown,
|
"PostDown": f"{self.PostDown}",
|
||||||
"SaveConfig": "true"
|
"SaveConfig": "true"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -46,7 +46,6 @@ export default {
|
|||||||
main{
|
main{
|
||||||
height: 100vh;
|
height: 100vh;
|
||||||
}
|
}
|
||||||
|
|
||||||
@supports (height: 100dvh) {
|
@supports (height: 100dvh) {
|
||||||
@media screen and (max-width: 768px) {
|
@media screen and (max-width: 768px) {
|
||||||
main{
|
main{
|
||||||
@ -54,6 +53,4 @@ export default {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
</style>
|
</style>
|
Loading…
x
Reference in New Issue
Block a user