mirror of
https://github.com/henrygd/beszel.git
synced 2026-04-13 16:31:49 +02:00
hub: prevent non-admin users from sending test alerts to internal hosts
This commit is contained in:
@@ -95,3 +95,7 @@ func (am *AlertManager) RestorePendingStatusAlerts() error {
|
||||
func (am *AlertManager) SetAlertTriggered(alert CachedAlertData, triggered bool) error {
|
||||
return am.setAlertTriggered(alert, triggered)
|
||||
}
|
||||
|
||||
func IsInternalURL(rawURL string) (bool, error) {
|
||||
return isInternalURL(rawURL)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user