Skip to content

Commit 7a83439

Browse files
committed
fix: update ALPN handling in XrayJsonGeneratorService
1 parent eb610a0 commit 7a83439

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/modules/subscription-template/generators/xray-json.generator.service.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -325,7 +325,7 @@ export class XrayJsonGeneratorService {
325325
}
326326

327327
if (host.alpn) {
328-
settings.alpn = Array.isArray(host.alpn) ? host.alpn : [host.alpn];
328+
settings.alpn = host.alpn.split(',');
329329
}
330330

331331
if (host.allowInsecure) {

0 commit comments

Comments
 (0)