converted tabs to spaces in a few files

This commit is contained in:
tigerbot 2017-05-06 01:08:10 -06:00
parent 9ee2d7b890
commit 2414163179
2 changed files with 23 additions and 23 deletions

4
.gitmodules vendored
View File

@ -1,3 +1,3 @@
[submodule "packages/assets/org.oauth3"]
path = packages/assets/org.oauth3
url = git@git.daplie.com:OAuth3/oauth3.js.git
path = packages/assets/org.oauth3
url = git@git.daplie.com:OAuth3/oauth3.js.git

View File

@ -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)
// but right now it's a very dumb proxy
function createConnection(conn) {
var opts = conn.__opts;
var newConn = deps.net.createConnection({
port: conf.http.proxy.port
, host: '127.0.0.1'
function createConnection(conn) {
var opts = conn.__opts;
var newConn = deps.net.createConnection({
port: conf.http.proxy.port
, host: '127.0.0.1'
, servername: opts.servername
, data: opts.data
, remoteFamily: opts.family || conn.remoteFamily
, remoteAddress: opts.address || conn.remoteAddress
, remotePort: opts.port || conn.remotePort
}, function () {
//console.log("[=>] first packet from tunneler to '" + cid + "' as '" + opts.service + "'", opts.data.byteLength);
// this will happen before 'data' is triggered
//newConn.write(opts.data);
});
, servername: opts.servername
, data: opts.data
, remoteFamily: opts.family || conn.remoteFamily
, remoteAddress: opts.address || conn.remoteAddress
, remotePort: opts.port || conn.remotePort
}, function () {
//console.log("[=>] first packet from tunneler to '" + cid + "' as '" + opts.service + "'", opts.data.byteLength);
// this will happen before 'data' is triggered
//newConn.write(opts.data);
});
newConn.pipe(conn);
conn.pipe(newConn);
}
}
return {
emit: function (type, conn) {
createConnection(conn);
}
};
return {
emit: function (type, conn) {
createConnection(conn);
}
};
};