mirror of
https://github.com/ngoduykhanh/wireguard-ui.git
synced 2025-04-21 20:12:33 +03:00
Fix first pageload fails #24
This commit is contained in:
parent
e7032e5946
commit
fc02023381
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