mirror of
https://github.com/clash-verge-rev/clash-verge-rev.git
synced 2026-11-08 02:52:07 +08:00
fix: URL test url
This commit is contained in:
@@ -614,7 +614,7 @@ export const GroupsEditorViewer = (props: Props) => {
|
||||
/>
|
||||
<TextField
|
||||
autoComplete="new-password"
|
||||
placeholder="http://cp.cloudflare.com"
|
||||
placeholder="http://cp.cloudflare.com/generate_204"
|
||||
size="small"
|
||||
sx={{ width: 'calc(100% - 150px)' }}
|
||||
{...field}
|
||||
|
||||
@@ -66,7 +66,8 @@ export const ProxyHead = ({
|
||||
|
||||
const { verge } = useVerge()
|
||||
const defaultLatencyUrl =
|
||||
verge?.default_latency_test?.trim() || 'http://cp.cloudflare.com'
|
||||
verge?.default_latency_test?.trim() ||
|
||||
'http://cp.cloudflare.com/generate_204'
|
||||
|
||||
useEffect(() => {
|
||||
delayManager.setUrl(groupName, testUrl?.trim() || url || defaultLatencyUrl)
|
||||
|
||||
@@ -383,7 +383,7 @@ export const MiscViewer = forwardRef<DialogRef>((props, ref) => {
|
||||
spellCheck="false"
|
||||
sx={{ width: 250, marginLeft: 'auto' }}
|
||||
value={values.defaultLatencyTest}
|
||||
placeholder="http://cp.cloudflare.com"
|
||||
placeholder="http://cp.cloudflare.com/generate_204"
|
||||
onChange={(e) =>
|
||||
setValues((v) => ({ ...v, defaultLatencyTest: e.target.value }))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user