forked from External/ergo
fix PROXY protocol support for IPv6
1. Handle PROXY lines with IPv6 addresses starting with :: (similar to WEBIRC in issue #211) 2. Strip v6 mapping from v4 addresses when handling proxied IPs.
This commit is contained in:
parent
f0491c2254
commit
10d4f77638
5 changed files with 68 additions and 39 deletions
|
|
@ -385,13 +385,6 @@ Replies to a PING. Used to check link connectivity.`,
|
|||
text: `PRIVMSG <target>{,<target>} <text to be sent>
|
||||
|
||||
Sends the text to the given targets as a PRIVMSG.`,
|
||||
},
|
||||
"proxy": {
|
||||
oper: true, // not really, but it's restricted anyways
|
||||
text: `PROXY TCP4/6 <sourceip> <destip> <sourceport> <destport>
|
||||
|
||||
Used by haproxy's PROXY v1 protocol, to allow for alternate TLS support:
|
||||
http://www.haproxy.org/download/1.8/doc/proxy-protocol.txt`,
|
||||
},
|
||||
"rename": {
|
||||
text: `RENAME <channel> <newname> [<reason>]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue