added AllowedHosts configuration

This commit is contained in:
Philippe Beaulieu
2020-04-09 09:18:50 -04:00
parent 567755e257
commit fd213dd450
4 changed files with 11 additions and 8 deletions

View File

@ -14,7 +14,7 @@ func Start(appConfig *mailRelayConfig) (err error) {
listen := fmt.Sprintf("%s:%d", appConfig.LocalListenIP, appConfig.LocalListenPort)
cfg := &guerrilla.AppConfig{LogFile: log.OutputStdout.String(), AllowedHosts: []string{"warpmail.net"}}
cfg := &guerrilla.AppConfig{LogFile: log.OutputStdout.String(), AllowedHosts: appConfig.AllowedHosts}
sc := guerrilla.ServerConfig{
ListenInterface: listen,
IsEnabled: true,