also pass hello packet
This commit is contained in:
parent
495dc57fb0
commit
c57b8f6a6d
|
@ -113,9 +113,11 @@ program.net = {
|
||||||
myDuplex.localFamily = socket.localFamily;
|
myDuplex.localFamily = socket.localFamily;
|
||||||
myDuplex.localAddress = socket.localAddress;
|
myDuplex.localAddress = socket.localAddress;
|
||||||
myDuplex.localPort = socket.localPort;
|
myDuplex.localPort = socket.localPort;
|
||||||
|
httpsServer.emit('connection', myDuplex);
|
||||||
*/
|
*/
|
||||||
|
|
||||||
// info = { servername, port, host, remoteAddress: { family, address, port } }
|
// data is the hello packet / first chunk
|
||||||
|
// info = { data, servername, port, host, remoteAddress: { family, address, port } }
|
||||||
var net = require('net');
|
var net = require('net');
|
||||||
// socket = { write, push, end, events: [ 'readable', 'data', 'error', 'end' ] };
|
// socket = { write, push, end, events: [ 'readable', 'data', 'error', 'end' ] };
|
||||||
var socket = net.createConnection({ port: info.port, host: info.host }, cb);
|
var socket = net.createConnection({ port: info.port, host: info.host }, cb);
|
||||||
|
|
|
@ -87,6 +87,7 @@ function run(copts) {
|
||||||
servername: servername
|
servername: servername
|
||||||
, port: port
|
, port: port
|
||||||
, host: '127.0.0.1'
|
, host: '127.0.0.1'
|
||||||
|
, data: opts.data
|
||||||
, remoteAddress: {
|
, remoteAddress: {
|
||||||
family: opts.family
|
family: opts.family
|
||||||
, address: opts.address
|
, address: opts.address
|
||||||
|
|
Loading…
Reference in New Issue