Set Server.AcceptProxyIPs

This commit is contained in:
Simon Ser 2020-09-07 20:58:49 +02:00
parent 7310f67fc7
commit 2c723823b0
No known key found for this signature in database
GPG Key ID: 0FDE7BE0E88F5E48

View File

@ -58,6 +58,7 @@ func main() {
srv.Hostname = cfg.Hostname srv.Hostname = cfg.Hostname
srv.LogPath = cfg.LogPath srv.LogPath = cfg.LogPath
srv.HTTPOrigins = cfg.HTTPOrigins srv.HTTPOrigins = cfg.HTTPOrigins
srv.AcceptProxyIPs = cfg.AcceptProxyIPs
srv.Debug = debug srv.Debug = debug
for _, listen := range cfg.Listen { for _, listen := range cfg.Listen {