config: add smtp timeout to global_relay settings (#14994)

Этот коммит содержится в:
Ibrahim Serdar Acikgoz
2020-07-16 11:21:55 +03:00
коммит произвёл GitHub
родитель 90ff87a77f
Коммит e6e563360b
2 изменённых файлов: 9 добавлений и 4 удалений

Просмотреть файл

@@ -2609,10 +2609,11 @@ func (s *PluginSettings) SetDefaults(ls LogSettings) {
}
type GlobalRelayMessageExportSettings struct {
CustomerType *string // must be either A9 or A10, dictates SMTP server url
SmtpUsername *string
SmtpPassword *string
EmailAddress *string // the address to send messages to
CustomerType *string // must be either A9 or A10, dictates SMTP server url
SmtpUsername *string
SmtpPassword *string
EmailAddress *string // the address to send messages to
SMTPServerTimeout *int
}
func (s *GlobalRelayMessageExportSettings) SetDefaults() {
@@ -2628,6 +2629,9 @@ func (s *GlobalRelayMessageExportSettings) SetDefaults() {
if s.EmailAddress == nil {
s.EmailAddress = NewString("")
}
if s.SMTPServerTimeout == nil || *s.SMTPServerTimeout == 0 {
s.SMTPServerTimeout = NewInt(1800)
}
}
type MessageExportSettings struct {