mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2026-10-14 01:45:00 +03:00
style: trim MASQUE and XDRIVE comment blocks to two lines
The MASQUE and XDRIVE commits left four comment blocks over the two-line cap CLAUDE.md sets for committed Go/TS.
This commit is contained in:
@@ -1,8 +1,7 @@
|
||||
import { z } from 'zod';
|
||||
|
||||
// MASQUE inbound (CONNECT-IP over HTTP/3 or HTTP/2). Clients log in with their email
|
||||
// and password over Basic auth; the panel stores `password` and the backend hands it
|
||||
// to xray-core as `pass`.
|
||||
// MASQUE clients log in with email and password over Basic auth; the panel stores
|
||||
// `password` and the backend hands it to xray-core as `pass`.
|
||||
export const MasqueClientSchema = z.object({
|
||||
password: z.string().min(1),
|
||||
email: z.string().min(1),
|
||||
|
||||
@@ -1,8 +1,7 @@
|
||||
import { z } from 'zod';
|
||||
|
||||
// XDRIVE tunnels the stream through files in shared cloud storage, so both ends
|
||||
// carry the same service, folder and secrets. Zero/absent tuning knobs take the
|
||||
// core's defaults; segmentBytes and concurrency are capped there at 16 MiB / 64.
|
||||
// Both XDRIVE ends carry the same service, folder and secrets; an absent tuning knob takes
|
||||
// the core's default (segmentBytes and concurrency are capped there at 16 MiB / 64).
|
||||
export const XDriveServiceSchema = z.enum(['Google Drive', 'local', 'template']);
|
||||
export type XDriveService = z.infer<typeof XDriveServiceSchema>;
|
||||
|
||||
|
||||
@@ -247,7 +247,7 @@ describe('createTlsSettingsWithDefaultCert', () => {
|
||||
}
|
||||
});
|
||||
|
||||
it("defaults ALPN to http/1.1 for WebSocket (issue #6782)", () => {
|
||||
it('defaults ALPN to http/1.1 for WebSocket (issue #6782)', () => {
|
||||
const tls = createTlsSettingsWithDefaultCert('ws');
|
||||
expect(tls.alpn).toEqual(['http/1.1']);
|
||||
// The overridden value must still satisfy the TLS settings schema.
|
||||
|
||||
Reference in New Issue
Block a user