Closed issuefiler closed 4 years ago
Sure, sounds good.
TODO:
HELO
/ EHLO
according to the ABNF rules. We can reuse the existing domain
and addressLiteral
productions in parse.goQuestion: Currently, the addressLiteral
does not support the General-address-literal
rule (RFC 5321 4.1.3). Should that be added to go-guerrilla? It looks like the IANA lists just one tag: IPv6 https://www.iana.org/assignments/address-literal-tags/address-literal-tags.xhtml#address-literal-tags-1
My personal opinion is that we can ignore the General-address-literal
rule. I don’t think we’ll have another Standardized-tag
other than “IPv6
” in a decade. Nobody knows the future though.
Ready to test in PR #202
RFC 5321
https://github.com/flashmob/go-guerrilla/blob/51f7dda326b1e9878e5f679ccb34a134127951b0/server.go#L426-L445
We don’t want the
HELO
introduction to be used for some nasty injections. I know that’s unlikely, but……. I just think it’s a good idea to validate it. Yeah, why not?