0
0
mirror of https://github.com/vx3r/wg-gen-web.git synced 2025-09-11 12:24:27 +00:00

update npm packages, issue #21, wg conf creation first run

This commit is contained in:
vx3r
2020-03-17 10:31:44 +09:00
parent 0e3aef75b8
commit 38a284c7c8
4 changed files with 1958 additions and 1892 deletions

View File

@ -55,6 +55,12 @@ func ReadServer() (*model.Server, error) {
if err != nil {
return nil, err
}
// server.json was missing, dump wg config after creation
err = UpdateServerConfigWg()
if err != nil {
return nil, err
}
}
c, err := storage.Deserialize("server.json")