2017-04-27 02:16:47 +00:00
|
|
|
'use strict';
|
|
|
|
|
|
|
|
// TODO needs some sort of config-sync
|
|
|
|
process.on('message', function (conf) {
|
|
|
|
var deps = {
|
|
|
|
messenger: process
|
2017-05-10 22:05:54 +00:00
|
|
|
// Note that if a custom createConnections is used it will be called with different
|
|
|
|
// sets of custom options based on what is actually being proxied. Most notably the
|
|
|
|
// HTTP proxying connection creation is not something we currently control.
|
2017-04-27 22:05:34 +00:00
|
|
|
, net: require('net')
|
2017-04-27 02:16:47 +00:00
|
|
|
};
|
|
|
|
require('./goldilocks.js').create(deps, conf);
|
|
|
|
});
|