Skip to content

Commit 527737e

Browse files
committed
chore: add x-hwid-limit header to subscription responses
1 parent 1b18f96 commit 527737e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/modules/subscription/subscription.service.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,7 @@ export class SubscriptionService {
136136
response.headers.announce = `base64:${Buffer.from(
137137
this.configService.getOrThrow<string>('HWID_MAX_DEVICES_ANNOUNCE'),
138138
).toString('base64')}`;
139+
response.headers['x-hwid-limit'] = 'true'; // v2rayTUN
139140

140141
return response;
141142
}
@@ -292,6 +293,7 @@ export class SubscriptionService {
292293
headers.announce = `base64:${Buffer.from(
293294
this.configService.getOrThrow<string>('HWID_MAX_DEVICES_ANNOUNCE'),
294295
).toString('base64')}`;
296+
headers['x-hwid-limit'] = 'true'; // v2rayTUN
295297

296298
isHwidLimited = true;
297299
}

0 commit comments

Comments
 (0)