🐛 fix: Added the enabled field in the protocol configuration, updated the related type definition and default configuration
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
// @ts-ignore
|
||||
|
||||
|
||||
// API 更新时间:
|
||||
// API 唯一标识:
|
||||
import * as auth from './auth';
|
||||
|
||||
+27
-4
@@ -504,6 +504,7 @@ declare namespace API {
|
||||
type Protocol = {
|
||||
type: string;
|
||||
port: number;
|
||||
enable: boolean;
|
||||
security?: string;
|
||||
sni?: string;
|
||||
allow_insecure?: boolean;
|
||||
@@ -527,10 +528,6 @@ declare namespace API {
|
||||
reduce_rtt?: boolean;
|
||||
udp_relay_mode?: string;
|
||||
congestion_controller?: string;
|
||||
/** obfs, v2ray-plugin, simple-obfs */
|
||||
plugin?: string;
|
||||
/** plugin options, eg: obfs=http;obfs-host=www.bing.com */
|
||||
plugin_options?: string;
|
||||
/** mux, eg: off/low/medium/high */
|
||||
multiplex?: string;
|
||||
/** padding scheme */
|
||||
@@ -539,6 +536,32 @@ declare namespace API {
|
||||
up_mbps?: number;
|
||||
/** download speed limit */
|
||||
down_mbps?: number;
|
||||
/** obfs, 'none', 'http', 'tls' */
|
||||
obfs?: string;
|
||||
/** obfs host */
|
||||
obfs_host?: string;
|
||||
/** obfs path */
|
||||
obfs_path?: string;
|
||||
/** xhttp mode */
|
||||
xhttp_mode?: string;
|
||||
/** xhttp extra path */
|
||||
xhttp_extra?: string;
|
||||
/** encryption,'none', 'mlkem768x25519plus' */
|
||||
encryption?: string;
|
||||
/** encryption mode,'native', 'xorpub', 'random' */
|
||||
encryption_mode?: string;
|
||||
/** encryption rtt,'0rtt', '1rtt' */
|
||||
encryption_rtt?: string;
|
||||
/** encryption ticket */
|
||||
encryption_ticket?: string;
|
||||
/** encryption server padding */
|
||||
encryption_server_padding?: string;
|
||||
/** encryption private key */
|
||||
encryption_private_key?: string;
|
||||
/** encryption client padding */
|
||||
encryption_client_padding?: string;
|
||||
/** encryption password */
|
||||
encryption_password?: string;
|
||||
};
|
||||
|
||||
type PubilcRegisterConfig = {
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
// @ts-ignore
|
||||
|
||||
|
||||
// API 更新时间:
|
||||
// API 唯一标识:
|
||||
import * as announcement from './announcement';
|
||||
|
||||
Vendored
+27
-4
@@ -543,6 +543,7 @@ declare namespace API {
|
||||
type Protocol = {
|
||||
type: string;
|
||||
port: number;
|
||||
enable: boolean;
|
||||
security?: string;
|
||||
sni?: string;
|
||||
allow_insecure?: boolean;
|
||||
@@ -566,10 +567,6 @@ declare namespace API {
|
||||
reduce_rtt?: boolean;
|
||||
udp_relay_mode?: string;
|
||||
congestion_controller?: string;
|
||||
/** obfs, v2ray-plugin, simple-obfs */
|
||||
plugin?: string;
|
||||
/** plugin options, eg: obfs=http;obfs-host=www.bing.com */
|
||||
plugin_options?: string;
|
||||
/** mux, eg: off/low/medium/high */
|
||||
multiplex?: string;
|
||||
/** padding scheme */
|
||||
@@ -578,6 +575,32 @@ declare namespace API {
|
||||
up_mbps?: number;
|
||||
/** download speed limit */
|
||||
down_mbps?: number;
|
||||
/** obfs, 'none', 'http', 'tls' */
|
||||
obfs?: string;
|
||||
/** obfs host */
|
||||
obfs_host?: string;
|
||||
/** obfs path */
|
||||
obfs_path?: string;
|
||||
/** xhttp mode */
|
||||
xhttp_mode?: string;
|
||||
/** xhttp extra path */
|
||||
xhttp_extra?: string;
|
||||
/** encryption,'none', 'mlkem768x25519plus' */
|
||||
encryption?: string;
|
||||
/** encryption mode,'native', 'xorpub', 'random' */
|
||||
encryption_mode?: string;
|
||||
/** encryption rtt,'0rtt', '1rtt' */
|
||||
encryption_rtt?: string;
|
||||
/** encryption ticket */
|
||||
encryption_ticket?: string;
|
||||
/** encryption server padding */
|
||||
encryption_server_padding?: string;
|
||||
/** encryption private key */
|
||||
encryption_private_key?: string;
|
||||
/** encryption client padding */
|
||||
encryption_client_padding?: string;
|
||||
/** encryption password */
|
||||
encryption_password?: string;
|
||||
};
|
||||
|
||||
type PubilcRegisterConfig = {
|
||||
|
||||
Reference in New Issue
Block a user