go-guerrilla icon indicating copy to clipboard operation
go-guerrilla copied to clipboard

add support for proxy protocol

Open romantomjak opened this issue 2 years ago • 0 comments

This is a small quality of life improvement to transparently support clients that use the proxy protocol. This is useful if go-guerilla is serving clients behind a proxy such as HA Proxy, AWS ELB, Traefik, etc.

Trying 111.222.333.444...
Connected to mail.somehost.com.
Escape character is '^]'.
220 mail.somehost.com SMTP Guerrilla(unknown) #1 (1) 2022-04-30T18:23:04Z
554 5.5.1 Unrecognized command

The "unrecognized command" response is due to the proxy server sending the proxy protocol header

romantomjak avatar Apr 30 '22 00:04 romantomjak