Open xBoyMinemc opened 7 months ago
so,when
const server = socks5.createServer((reqInfo, accept, deny) => { console.log('Requested target:', reqInfo); const socket = accept(false); if (socket) { socket.on('data', (data) => { const requestData = data.toString(); if (requestData.startsWith('GET') || requestData.startsWith('POST')) { const match = requestData.match(/^Host: (.+)$/m); if (match) { console.log('Host Header:', match[1]); } } }); } });
i can get Host Header,without socket.resume() after socket.resume(), Building sockets manually is cumbersome
data lost for accept(true) #8
so,when
i can get Host Header,without socket.resume()
after socket.resume(), Building sockets manually is cumbersome