Revert "chore: change default port to 7897"
This reverts commit 4ec73ef1c3.
This commit is contained in:
@@ -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, () => ({
|
||||
|
||||
@@ -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 || "")
|
||||
|
||||
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user