mirror of
https://github.com/bitinflow/localtunnel.git
synced 2026-10-31 20:59:08 +00:00
refactor server tcp handling
- limit on number of tcp connections - preliminary support for websockets
This commit is contained in:
1 parent
ab28444802
commit
51d91ce0e8
3 files changed
+252
-169
No files matched your search
@@ -0,0 +1,12 @@
|
||||
|
||||
var chars = 'abcdefghiklmnopqrstuvwxyz';
|
||||
module.exports = function rand_id() {
|
||||
var randomstring = '';
|
||||
for (var i=0; i<4; ++i) {
|
||||
var rnum = Math.floor(Math.random() * chars.length);
|
||||
randomstring += chars[rnum];
|
||||
}
|
||||
|
||||
return randomstring;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user