move proxy option to server.

This commit is contained in:
Miroslav Šedivý
2023-11-19 14:50:23 +01:00
parent 3c4d7b9d60
commit 683b750189
5 changed files with 11 additions and 19 deletions

View File

@ -290,7 +290,7 @@ func (ws *WebSocketHandler) Upgrade(w http.ResponseWriter, r *http.Request) erro
socket := &WebSocket{
id: id,
ws: ws,
address: utils.GetHttpRequestIP(r, ws.conf.Proxy),
address: r.RemoteAddr,
connection: connection,
}