mirror of
https://github.com/ngoduykhanh/wireguard-ui.git
synced 2025-04-18 19:49:30 +03:00
Fix first pageload (#32)
This commit is contained in:
parent
b0ed08f19d
commit
c205a04443
1 changed files with 2 additions and 2 deletions
|
@ -44,10 +44,10 @@ func InitDB() error {
|
|||
|
||||
// create directories if they do not exist
|
||||
if _, err := os.Stat(clientPath); os.IsNotExist(err) {
|
||||
os.Mkdir(clientPath, os.ModePerm)
|
||||
os.MkdirAll(clientPath, os.ModePerm)
|
||||
}
|
||||
if _, err := os.Stat(serverPath); os.IsNotExist(err) {
|
||||
os.Mkdir(serverPath, os.ModePerm)
|
||||
os.MkdirAll(serverPath, os.ModePerm)
|
||||
}
|
||||
|
||||
// server's interface
|
||||
|
|
Loading…
Add table
Reference in a new issue