converted tabs to spaces in a few files
This commit is contained in:
parent
9ee2d7b890
commit
2414163179
|
@ -1,3 +1,3 @@
|
||||||
[submodule "packages/assets/org.oauth3"]
|
[submodule "packages/assets/org.oauth3"]
|
||||||
path = packages/assets/org.oauth3
|
path = packages/assets/org.oauth3
|
||||||
url = git@git.daplie.com:OAuth3/oauth3.js.git
|
url = git@git.daplie.com:OAuth3/oauth3.js.git
|
||||||
|
|
|
@ -5,30 +5,30 @@ module.exports.create = function (deps, conf) {
|
||||||
// no-www redirect, and transpilation of static assets (i.e. cached versions of raw html)
|
// no-www redirect, and transpilation of static assets (i.e. cached versions of raw html)
|
||||||
// but right now it's a very dumb proxy
|
// but right now it's a very dumb proxy
|
||||||
|
|
||||||
function createConnection(conn) {
|
function createConnection(conn) {
|
||||||
var opts = conn.__opts;
|
var opts = conn.__opts;
|
||||||
var newConn = deps.net.createConnection({
|
var newConn = deps.net.createConnection({
|
||||||
port: conf.http.proxy.port
|
port: conf.http.proxy.port
|
||||||
, host: '127.0.0.1'
|
, host: '127.0.0.1'
|
||||||
|
|
||||||
, servername: opts.servername
|
, servername: opts.servername
|
||||||
, data: opts.data
|
, data: opts.data
|
||||||
, remoteFamily: opts.family || conn.remoteFamily
|
, remoteFamily: opts.family || conn.remoteFamily
|
||||||
, remoteAddress: opts.address || conn.remoteAddress
|
, remoteAddress: opts.address || conn.remoteAddress
|
||||||
, remotePort: opts.port || conn.remotePort
|
, remotePort: opts.port || conn.remotePort
|
||||||
}, function () {
|
}, function () {
|
||||||
//console.log("[=>] first packet from tunneler to '" + cid + "' as '" + opts.service + "'", opts.data.byteLength);
|
//console.log("[=>] first packet from tunneler to '" + cid + "' as '" + opts.service + "'", opts.data.byteLength);
|
||||||
// this will happen before 'data' is triggered
|
// this will happen before 'data' is triggered
|
||||||
//newConn.write(opts.data);
|
//newConn.write(opts.data);
|
||||||
});
|
});
|
||||||
|
|
||||||
newConn.pipe(conn);
|
newConn.pipe(conn);
|
||||||
conn.pipe(newConn);
|
conn.pipe(newConn);
|
||||||
}
|
}
|
||||||
|
|
||||||
return {
|
return {
|
||||||
emit: function (type, conn) {
|
emit: function (type, conn) {
|
||||||
createConnection(conn);
|
createConnection(conn);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue