mirror of
https://github.com/go-gost/gost.git
synced 2026-10-09 12:35:45 +00:00
fix race condition in config updating
This commit is contained in:
+1
-1
@@ -218,7 +218,7 @@ func main() {
|
||||
}()
|
||||
}
|
||||
|
||||
config.SetGlobal(cfg)
|
||||
config.Set(cfg)
|
||||
|
||||
sigs := make(chan os.Signal, 1)
|
||||
signal.Notify(sigs, os.Interrupt, syscall.SIGTERM, syscall.SIGINT, syscall.SIGHUP)
|
||||
|
||||
Reference in New Issue
Block a user