mirror of
https://github.com/gazer-x/komari.git
synced 2026-06-22 08:15:56 +08:00
fix: 只有在通知方式变动时重载MessageSenderProvider
This commit is contained in:
@@ -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