Create messagechan for proxy clients.

This commit is contained in:
Joachim Bauch 2021-06-01 09:43:55 +02:00
parent 2b02a2f929
commit b8b46264c1
No known key found for this signature in database
GPG key ID: 77C1D22D53E15F02

View file

@ -139,6 +139,7 @@ func (c *Client) SetConn(conn *websocket.Conn, remoteAddress string) {
c.conn = conn
c.addr = remoteAddress
c.closeChan = make(chan bool, 1)
c.messageChan = make(chan *bytes.Buffer, 16)
c.OnLookupCountry = func(client *Client) string { return unknownCountry }
c.OnClosed = func(client *Client) {}
c.OnMessageReceived = func(client *Client, data []byte) {}