优化细节

This commit is contained in:
bjdgyc
2021-12-31 21:37:21 +08:00
parent 85e2ba0b0f
commit 684fea69d0
5 changed files with 56 additions and 31 deletions

View File

@@ -102,7 +102,23 @@ func addInitData() error {
return err
}
return sess.Commit()
err = sess.Commit()
if err != nil {
return err
}
g1 := Group{
Name: "ops",
AllowLan: true,
ClientDns: []ValData{{Val: "114.114.114.114"}},
RouteInclude: []ValData{{Val: All}},
}
err = SetGroup(&g1)
if err != nil {
return err
}
return nil
}
func CheckErrNotFound(err error) bool {