Skip to content

Commit

Permalink
Fixed bug.
Browse files Browse the repository at this point in the history
  • Loading branch information
bia-pain-bache committed Dec 13, 2024
1 parent 3bcd925 commit 147e6ca
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Binary file modified docs/assets/images/Panel.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion src/helpers/init.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ export function initializeParams(request, env) {
const proxyIPs = env.PROXYIP?.split(',').map(proxyIP => proxyIP.trim());
const url = new URL(request.url);
const searchParams = new URLSearchParams(url.search);
globalThis.panelVersion = '2.8';
globalThis.panelVersion = '2.8.1';
globalThis.defaultHttpPorts = ['80', '8080', '2052', '2082', '2086', '2095', '8880'];
globalThis.defaultHttpsPorts = ['443', '8443', '2053', '2083', '2087', '2096'];
globalThis.userID = env.UUID;
Expand Down
4 changes: 2 additions & 2 deletions src/kv/handlers.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ export async function updateDataset (request, env) {
throw new Error(`An error occurred while getting current KV settings - ${error}`);
}
} else {
await env.bpb.delete('warpConfigs');
newSettings = null;
}

Expand Down Expand Up @@ -115,7 +114,8 @@ export async function updateDataset (request, env) {
};

try {
await env.bpb.put("proxySettings", JSON.stringify(proxySettings));
await env.bpb.put("proxySettings", JSON.stringify(proxySettings));
await updateWarpConfigs(request, env);
} catch (error) {
console.log(error);
throw new Error(`An error occurred while updating KV - ${error}`);
Expand Down

0 comments on commit 147e6ca

Please sign in to comment.