🐛 fix(protocol-form): Update protocol options descriptions for clarity and add new security and transport options

This commit is contained in:
web 2025-08-14 10:13:12 -07:00 committed by speakeloudest
parent d17d77353f
commit da2aad5d14

View File

@ -669,7 +669,7 @@ export function ProtocolForm() {
type: 'object', type: 'object',
properties: { properties: {
Name: { type: 'string', description: 'Node name' }, Name: { type: 'string', description: 'Node name' },
Host: { type: 'string', description: 'Server host' }, Server: { type: 'string', description: 'Server host' },
Port: { type: 'number', description: 'Server port' }, Port: { type: 'number', description: 'Server port' },
Type: { type: 'string', description: 'Proxy type' }, Type: { type: 'string', description: 'Proxy type' },
Tags: { Tags: {
@ -677,17 +677,23 @@ export function ProtocolForm() {
description: 'Node tags', description: 'Node tags',
items: { type: 'string' }, items: { type: 'string' },
}, },
// Security Options
Security: {
type: 'string',
description: 'Security protocol',
},
SNI: { SNI: {
type: 'string', type: 'string',
description: 'Server Name Indication', description: 'Server Name Indication for TLS',
}, },
AllowInsecure: { AllowInsecure: {
type: 'boolean', type: 'boolean',
description: 'Allow insecure connections', description:
'Allow insecure connections (skip certificate verification)',
}, },
Fingerprint: { Fingerprint: {
type: 'string', type: 'string',
description: 'Client fingerprint', description: 'Client fingerprint for TLS connections',
}, },
RealityServerAddr: { RealityServerAddr: {
type: 'string', type: 'string',
@ -699,33 +705,70 @@ export function ProtocolForm() {
}, },
RealityPrivateKey: { RealityPrivateKey: {
type: 'string', type: 'string',
description: 'Reality private key', description: 'Reality private key for authentication',
}, },
RealityPublicKey: { RealityPublicKey: {
type: 'string', type: 'string',
description: 'Reality public key', description: 'Reality public key for authentication',
}, },
RealityShortId: { RealityShortId: {
type: 'string', type: 'string',
description: 'Reality short ID', description: 'Reality short ID for authentication',
}, },
Network: { type: 'string', description: 'Network protocol' }, // Transport Options
Path: { type: 'string', description: 'HTTP path' }, Transport: {
type: 'string',
description: 'Transport protocol (e.g., ws, http, grpc)',
},
Host: {
type: 'string',
description: 'For WebSocket/HTTP/HTTPS',
},
Path: { type: 'string', description: 'For HTTP/HTTPS' },
ServiceName: { ServiceName: {
type: 'string', type: 'string',
description: 'gRPC service name', description: 'For gRPC',
}, },
// Shadowsocks Options
Method: { type: 'string', description: 'Encryption method' }, Method: { type: 'string', description: 'Encryption method' },
ServerKey: { type: 'string', description: 'Server key' }, ServerKey: {
Flow: { type: 'string', description: 'Flow control' }, type: 'string',
HopPorts: { type: 'string', description: 'Hop ports list' }, description: 'For Shadowsocks 2022',
},
// Vmess/Vless/Trojan Options
Flow: {
type: 'string',
description: 'Flow for Vmess/Vless/Trojan',
},
// Hysteria2 Options
HopPorts: {
type: 'string',
description: 'Comma-separated list of hop ports',
},
HopInterval: { HopInterval: {
type: 'number', type: 'number',
description: 'Hop interval in seconds', description: 'Interval for hop ports in seconds',
}, },
ObfsPassword: { ObfsPassword: {
type: 'string', type: 'string',
description: 'Obfuscation password', description: 'Obfuscation password for Hysteria2',
},
// Tuic Options
DisableSNI: {
type: 'boolean',
description: 'Disable SNI',
},
ReduceRtt: {
type: 'boolean',
description: 'Reduce RTT',
},
UDPRelayMode: {
type: 'string',
description: 'UDP relay mode (e.g., "full", "partial")',
},
CongestionController: {
type: 'string',
description: 'Congestion controller (e.g., "cubic", "bbr")',
}, },
}, },
}, },