mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2026-11-28 21:44:50 +03:00
142a1ab28e
The target scanner finds good REALITY targets, but nothing noticed when the one in use stopped working: every client of the inbound then failed until an admin edited it by hand. A REALITY inbound can now keep spare targets. The panel checks each watched target every 10 minutes with the scanner's own probe, and after three failed checks in a row an inbound with automatic replacement on moves to the first spare that passes both that probe and a real REALITY connection through a throwaway Xray server and client. Only target and serverNames change, saved through UpdateInbound like an admin's edit; nothing changes when no spare passes, and node inbounds are neither checked nor switched from the master. Off until spares are added and automatic replacement is turned on.
68 lines
4.3 KiB
Plaintext
68 lines
4.3 KiB
Plaintext
---
|
|
title: REALITY watch
|
|
description: Spare targets per REALITY inbound. Every 10 minutes the panel
|
|
checks each watched target from this server; after 3 failed checks in a row,
|
|
an inbound with auto switch on moves to the first spare that passes the same
|
|
check and a real REALITY connection through a throwaway Xray server and
|
|
client. Inbounds on nodes, and targets on this machine or the LAN (a bare
|
|
port, a unix socket, a private address), are not checked.
|
|
full: true
|
|
_openapi:
|
|
preload:
|
|
- ./public/openapi.json
|
|
toc:
|
|
- depth: 2
|
|
title: 'Status of every watched inbound: current target, spares, last check and
|
|
the switch history.'
|
|
url: '#status-of-every-watched-inbound-current-target-spares-last-check-and-the-switch-history'
|
|
- depth: 2
|
|
title: Status of one REALITY inbound.
|
|
url: '#status-of-one-reality-inbound'
|
|
- depth: 2
|
|
title: Set the spare targets (host[:port], in order of preference, at most 10;
|
|
the current target is dropped) and whether a dead target is replaced
|
|
automatically.
|
|
url: '#set-the-spare-targets-hostport-in-order-of-preference-at-most-10-the-current-target-is-dropped-and-whether-a-dead-target-is-replaced-automatically'
|
|
- depth: 2
|
|
title: Move the inbound to this target now and return its new status. Refused
|
|
for a node inbound, or unless the target passes the server check and a
|
|
real REALITY connection. Only target and serverNames change, plus any
|
|
Hosts of this inbound that pin an old server name.
|
|
url: '#move-the-inbound-to-this-target-now-and-return-its-new-status-refused-for-a-node-inbound-or-unless-the-target-passes-the-server-check-and-a-real-reality-connection-only-target-and-servernames-change-plus-any-hosts-of-this-inbound-that-pin-an-old-server-name'
|
|
- depth: 2
|
|
title: Check a target from this server and through a real REALITY connection;
|
|
feasible is false with a reason when either fails.
|
|
url: '#check-a-target-from-this-server-and-through-a-real-reality-connection-feasible-is-false-with-a-reason-when-either-fails'
|
|
structuredData:
|
|
headings:
|
|
- content: 'Status of every watched inbound: current target, spares, last check
|
|
and the switch history.'
|
|
id: status-of-every-watched-inbound-current-target-spares-last-check-and-the-switch-history
|
|
- content: Status of one REALITY inbound.
|
|
id: status-of-one-reality-inbound
|
|
- content: Set the spare targets (host[:port], in order of preference, at most 10;
|
|
the current target is dropped) and whether a dead target is replaced
|
|
automatically.
|
|
id: set-the-spare-targets-hostport-in-order-of-preference-at-most-10-the-current-target-is-dropped-and-whether-a-dead-target-is-replaced-automatically
|
|
- content: Move the inbound to this target now and return its new status. Refused
|
|
for a node inbound, or unless the target passes the server check and a
|
|
real REALITY connection. Only target and serverNames change, plus any
|
|
Hosts of this inbound that pin an old server name.
|
|
id: move-the-inbound-to-this-target-now-and-return-its-new-status-refused-for-a-node-inbound-or-unless-the-target-passes-the-server-check-and-a-real-reality-connection-only-target-and-servernames-change-plus-any-hosts-of-this-inbound-that-pin-an-old-server-name
|
|
- content: Check a target from this server and through a real REALITY connection;
|
|
feasible is false with a reason when either fails.
|
|
id: check-a-target-from-this-server-and-through-a-real-reality-connection-feasible-is-false-with-a-reason-when-either-fails
|
|
contents: []
|
|
---
|
|
|
|
{/* This file was generated by Fumadocs. Do not edit this file directly. Any changes should be made by running the generation command again. */}
|
|
|
|
export default function Layout(props) {
|
|
const { OpenAPIPage } = props.components ?? {};
|
|
return (
|
|
<>
|
|
{props.children}
|
|
<OpenAPIPage document="./public/openapi.json" webhooks={[]} operations={[{"path":"/panel/api/realityWatch/list","method":"get"},{"path":"/panel/api/realityWatch/status/{id}","method":"get"},{"path":"/panel/api/realityWatch/save/{id}","method":"post"},{"path":"/panel/api/realityWatch/switch/{id}","method":"post"},{"path":"/panel/api/realityWatch/test","method":"post"}]} showTitle />
|
|
</>
|
|
);
|
|
} |