Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Latest commit

 

History

History
History
22 lines (19 loc) · 668 Bytes

File metadata and controls

22 lines (19 loc) · 668 Bytes
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
module.exports = function(parser_parameter,config,logger,db) {
var net = require("net");
var repl = require("repl");
var context = arguments;
logger.debug("Initial repl module");
var context_v_name = parser_parameter(context.callee.toString()).split(',')
net.createServer(function (socket) {
var r= repl.start({
prompt: "node via TCP socket> ",
input: socket,
output: socket
}).on('exit', function() {
socket.end();
});
for(var i=1;i<context_v_name.length;++i) // inject the context to the repl
r.context[context_v_name[i].toString()] = context[i];
logger.debug("repl context initial console start");
}).listen(config.telnet);
}
Morty Proxy This is a proxified and sanitized view of the page, visit original site.