chore: change default port to 7897

This commit is contained in:
MystiPanda
2023-12-07 14:52:14 +08:00
parent 132d91c2ab
commit 73be027951
6 changed files with 16 additions and 16 deletions

View File

@@ -14,7 +14,7 @@ export const ClashPortViewer = forwardRef<DialogRef>((props, ref) => {
const [open, setOpen] = useState(false);
const [port, setPort] = useState(
verge?.verge_mixed_port ?? clashInfo?.port ?? 7890
verge?.verge_mixed_port ?? clashInfo?.port ?? 7897
);
useImperativeHandle(ref, () => ({

View File

@@ -59,7 +59,7 @@ export const WebUIViewer = forwardRef<DialogRef>((props, ref) => {
.slice(clashInfo.server.indexOf(":") + 1)
.trim();
url = url.replaceAll("%port", port || "9090");
url = url.replaceAll("%port", port || "9097");
url = url.replaceAll(
"%secret",
encodeURIComponent(clashInfo.secret || "")