Revert "chore: change default port to 7897"

This reverts commit 4ec73ef1c3.
This commit is contained in:
MystiPanda
2023-12-07 13:32:49 +08:00
Unverified
parent 4ec73ef1c3
commit c8a508f35c
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 ?? 7897
verge?.verge_mixed_port ?? clashInfo?.port ?? 7890
);
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 || "9097");
url = url.replaceAll("%port", port || "9090");
url = url.replaceAll(
"%secret",
encodeURIComponent(clashInfo.secret || "")

View File

@@ -135,7 +135,7 @@ const SettingClash = ({ onError }: Props) => {
disabled={enable_random_port}
autoComplete="off"
size="small"
value={verge_mixed_port ?? 7897}
value={verge_mixed_port ?? 7890}
sx={{ width: 100, input: { py: "7.5px", cursor: "pointer" } }}
onClick={(e) => {
portRef.current?.open();