mirror of
https://github.com/QuiteAFancyEmerald/Holy-Unblocker.git
synced 2025-05-13 03:50:02 -04:00
Updated a few more things
This commit is contained in:
parent
c827e9f7e1
commit
73cdcb3186
47 changed files with 35805 additions and 1102 deletions
|
@ -13,7 +13,7 @@ function createWebSocketProxy(ctx) {
|
|||
headers: { ...clientRequest.headers },
|
||||
method: clientRequest.method,
|
||||
rewrite: ctx,
|
||||
agent: new ((urlData.value.protocol == 'https:' || ctx.config.forceHttps) ? https : http).Agent({
|
||||
agent: new (urlData.value.protocol == 'https:' ? https : http).Agent({
|
||||
rejectUnauthorized: false,
|
||||
}),
|
||||
address: null,
|
||||
|
@ -22,7 +22,7 @@ function createWebSocketProxy(ctx) {
|
|||
clientHead,
|
||||
};
|
||||
ctx.config.requestMiddleware.forEach(fn => fn(requestContext));
|
||||
((requestContext.url.protocol == 'https:' || ctx.config.forceHttps) ? https : http).request({
|
||||
(requestContext.url.protocol == 'https:' ? https : http).request({
|
||||
headers: requestContext.headers,
|
||||
method: requestContext.method,
|
||||
hostname: requestContext.url.hostname,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue