mirror of
https://github.com/komari-monitor/komari.git
synced 2026-11-24 17:10:54 +00:00
fix: 只有在通知方式变动时重载MessageSenderProvider
This commit is contained in:
1 parent
b07f7345ee
commit
03e08cdfbb
1 file changed
+2
@@ -69,6 +69,8 @@ var ServerCmd = &cobra.Command{
|
||||
DynamicCorsEnabled = event.New.AllowCors
|
||||
if event.New.GeoIpProvider != event.Old.GeoIpProvider {
|
||||
go geoip.InitGeoIp()
|
||||
}
|
||||
if event.New.NotificationMethod != event.Old.NotificationMethod {
|
||||
go messageSender.Initialize()
|
||||
}
|
||||
})
|
||||
|
||||
Reference in new issue
Block a user