mirror of
https://github.com/QuiteAFancyEmerald/Holy-Unblocker.git
synced 2025-05-12 11:30:01 -04:00
Minor Edits
This commit is contained in:
parent
eeaa56dfe4
commit
27b55eb78e
12 changed files with 1102 additions and 5 deletions
4
app.js
4
app.js
|
@ -2,7 +2,7 @@
|
|||
/* Author : QuiteAFancyEmerald, YÖCTDÖNALD'S and SexyDuceDuce with help from Divide
|
||||
/* MIT license: http://opensource.org/licenses/MIT
|
||||
/* ----------------------------------------------- */
|
||||
const [express, alloy, http, fs, path, char_insert] = [require('express'), require('alloyproxy'), require('http'), require('fs'), require('path'), require('./src/charinsert.js')], [app, config] = [express(), JSON.parse(fs.readFileSync('./config.json', { encoding: 'utf8' }))], server = http.createServer(app), localprox = new alloy({
|
||||
const [express, alloy, http, fs, path, char_insert] = [require('express'), require('./src/alloyproxy'), require('http'), require('fs'), require('path'), require('./src/charinsert.js')], [app, config] = [express(), JSON.parse(fs.readFileSync('./config.json', { encoding: 'utf8' }))], server = http.createServer(app), localprox = new alloy({
|
||||
prefix: '/fetch/',
|
||||
error: (proxy) => { proxy.res.send(fs.readFileSync('./views/error.html', { encoding: 'utf8' }).replace('%ERR%', proxy.error.info.message.replace(/</gi, '<‌').replace(/>/gi, '>‌'))); }, // Doing replace functions on "<" and ">" to prevent XSS.
|
||||
request: [],
|
||||
|
@ -237,4 +237,4 @@ atob = (str) => {
|
|||
return str;
|
||||
};
|
||||
|
||||
*/
|
||||
*/
|
Loading…
Add table
Add a link
Reference in a new issue