mirror of
https://github.com/jeremyd/ergo.git
synced 2026-07-29 10:18:11 -07:00
PROXY: Restrict to specified addresses/hostnames
This commit is contained in:
+1
-2
@@ -63,8 +63,7 @@ func (client *Client) run() {
|
||||
|
||||
// Set the hostname for this client. The client may later send a PROXY
|
||||
// command from stunnel that sets the hostname to something more accurate.
|
||||
client.send(NewProxyCommand(AddrLookupHostname(
|
||||
client.socket.conn.RemoteAddr())))
|
||||
client.hostname = AddrLookupHostname(client.socket.conn.RemoteAddr())
|
||||
|
||||
for err == nil {
|
||||
//TODO(dan): does this read sockets correctly and split lines properly? (think that ZNC bug that kept happening with mammon)
|
||||
|
||||
Reference in New Issue
Block a user