mirror of
https://github.com/wiggin77/mailrelay.git
synced 2025-08-09 15:24:58 +02:00
added AllowedHosts configuration
This commit is contained in:
@ -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,
|
||||
|
Reference in New Issue
Block a user