Skip to content

Commit 172106e

Browse files
committed
use the original socket to get the remoteAddress
1 parent 01f77db commit 172106e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

apps/browser-proxy/src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ tcpServer.on('connection', (socket) => {
148148
}
149149

150150
const clientIpMessage = createStartupMessage('postgres', 'postgres', {
151-
client_ip: extractIP(connection.socket.remoteAddress!),
151+
client_ip: extractIP(socket.remoteAddress!),
152152
})
153153
websocket.send(clientIpMessage)
154154
},

0 commit comments

Comments
 (0)