Release config file immediatly

This commit is contained in:
wweir
2019-02-24 18:18:43 +08:00
parent cacc732a4e
commit 63bb934148
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -98,10 +98,10 @@ func AddSuggest(domain string) {
f.Close()
return
}
f.Close()
if err = os.Rename(Conf.ConfigFile+"~", Conf.ConfigFile); err != nil {
glog.Errorln(err)
f.Close()
return
}
+1 -1
View File
@@ -21,5 +21,5 @@ require (
github.com/xtaci/kcp-go v5.0.7+incompatible
go.universe.tf/netboot v0.0.0-20190215013330-01f30467ac8e
golang.org/x/crypto v0.0.0-20190222235706-ffb98f73852f // lock version
golang.org/x/sys v0.0.0-20190222171317-cd391775e71e // indirect
golang.org/x/sys v0.0.0-20190222171317-cd391775e71e
)