Preserve VLESS WebSocket variants during subscription refresh
Build and Deploy Gateway / build-and-push (push) Successful in 18s
Build and Deploy Gateway / deploy (push) Successful in 13s

This commit is contained in:
2026-08-09 12:42:05 +03:00
parent 90433d7cd8
commit f40221969b
7 changed files with 198 additions and 21 deletions
+6 -2
View File
@@ -13,6 +13,7 @@ import {
} from '../../dist/shared/contracts/state.js';
import { createServerId } from '../../dist/shared/serverIdentity.js';
import { HARBOR_VERSIONS } from '../../dist/shared/versions.js';
import { normalizeSubscriptionConfig } from '../../dist/server/subscription.js';
const root = path.resolve(import.meta.dirname, '../..');
@@ -154,10 +155,13 @@ test('data invariant: API mutations return one snapshot, increase revision and r
server: 'vpn.example.test',
server_port: 443,
uuid: '00000000-0000-4000-8000-000000000000',
tls: { enabled: true },
tls: { enabled: true, server_name: 'edge.example.test' },
transport: { type: 'ws', path: '/test', headers: { Host: 'edge.example.test' } },
}],
};
const testServerId = createServerId(config.outbounds[0]);
const legacyServerId = createServerId(config.outbounds[0]);
const testServerId = normalizeSubscriptionConfig(config).servers[0].id;
assert.notEqual(testServerId, legacyServerId);
fs.mkdirSync(binDir);
const singboxPath = path.join(binDir, 'sing-box');
const workingSingbox = `#!/usr/bin/env node