Linux vps-61133.fhnet.fr 4.9.0-19-amd64 #1 SMP Debian 4.9.320-2 (2022-06-30) x86_64
Apache/2.4.25 (Debian)
Server IP : 93.113.207.21 & Your IP : 216.73.216.119
Domains :
Cant Read [ /etc/named.conf ]
User : www-data
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
var /
www /
html_old /
iNetty /
node_modules /
ws /
lib /
Delete
Unzip
Name
Size
Permission
Date
Action
buffer-util.js
2.84
KB
-rw-r--r--
2022-04-21 14:30
constants.js
360
B
-rw-r--r--
2022-04-21 14:30
event-target.js
6.44
KB
-rw-r--r--
2022-04-21 14:30
extension.js
6.04
KB
-rw-r--r--
2022-04-21 14:30
limiter.js
1.01
KB
-rw-r--r--
2022-04-21 14:30
permessage-deflate.js
13.69
KB
-rw-r--r--
2022-04-21 14:30
receiver.js
14.17
KB
-rw-r--r--
2022-04-21 14:30
sender.js
12.37
KB
-rw-r--r--
2022-04-21 14:30
stream.js
3.99
KB
-rw-r--r--
2022-04-21 14:30
subprotocol.js
1.46
KB
-rw-r--r--
2022-04-21 14:30
validation.js
3.07
KB
-rw-r--r--
2022-04-21 14:30
websocket-server.js
13.56
KB
-rw-r--r--
2022-04-21 14:30
websocket.js
31.72
KB
-rw-r--r--
2022-04-21 14:30
Save
Rename
'use strict'; const { tokenChars } = require('./validation'); /** * Parses the `Sec-WebSocket-Protocol` header into a set of subprotocol names. * * @param {String} header The field value of the header * @return {Set} The subprotocol names * @public */ function parse(header) { const protocols = new Set(); let start = -1; let end = -1; let i = 0; for (i; i < header.length; i++) { const code = header.charCodeAt(i); if (end === -1 && tokenChars[code] === 1) { if (start === -1) start = i; } else if ( i !== 0 && (code === 0x20 /* ' ' */ || code === 0x09) /* '\t' */ ) { if (end === -1 && start !== -1) end = i; } else if (code === 0x2c /* ',' */) { if (start === -1) { throw new SyntaxError(`Unexpected character at index ${i}`); } if (end === -1) end = i; const protocol = header.slice(start, end); if (protocols.has(protocol)) { throw new SyntaxError(`The "${protocol}" subprotocol is duplicated`); } protocols.add(protocol); start = end = -1; } else { throw new SyntaxError(`Unexpected character at index ${i}`); } } if (start === -1 || end !== -1) { throw new SyntaxError('Unexpected end of input'); } const protocol = header.slice(start, i); if (protocols.has(protocol)) { throw new SyntaxError(`The "${protocol}" subprotocol is duplicated`); } protocols.add(protocol); return protocols; } module.exports = { parse };