mirror of
https://github.com/NebulaServices/Nebula.git
synced 2025-05-17 05:20:01 -04:00
AES encryption for dynamic
This commit is contained in:
parent
ccb9f7e6e9
commit
89229d95e5
4 changed files with 14 additions and 9 deletions
|
@ -47,7 +47,9 @@ export function ProxyFrame(props: { url: string }) {
|
|||
window.__uv$config.encodeUrl(decodedUrl);
|
||||
} else if (localProxy === "dynamic") {
|
||||
result =
|
||||
window.__dynamic$config.prefix + encodeURIComponent(decodedUrl);
|
||||
window.__dynamic$config.prefix +
|
||||
"route?url=" +
|
||||
encodeURIComponent(decodedUrl);
|
||||
} else {
|
||||
// automatic. use SiteSupport.json to determine proxy support
|
||||
const matchingKey = Object.keys(SiteSupport).find((key) =>
|
||||
|
@ -60,7 +62,9 @@ export function ProxyFrame(props: { url: string }) {
|
|||
window.__uv$config.encodeUrl(decodedUrl);
|
||||
} else if (SiteSupport[matchingKey] === "dynamic") {
|
||||
result =
|
||||
window.__dynamic$config.prefix + encodeURIComponent(decodedUrl);
|
||||
window.__dynamic$config.prefix +
|
||||
"route?url=" +
|
||||
encodeURIComponent(decodedUrl);
|
||||
} else if (SiteSupport[matchingKey] === "rammerhead") {
|
||||
result = await RammerheadEncode(decodedUrl);
|
||||
} else {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue