feat: add Happ routing support to subscriptions

- Add routingProfile field to InboundConfigDto
- Update Subscription entity type
- Add happ-routing handler in RotationService
- Add UI for happ-routing inbound type in SubscriptionsPage
This commit is contained in:
root
2026-06-01 12:40:51 +03:00
parent 73c9adf42a
commit fc8fbc976f
3 changed files with 7 additions and 0 deletions
+1
View File
@@ -257,6 +257,7 @@ export class RotationService implements OnModuleInit {
sni = config.sni === 'random' ? this.pickDomain(domains) : config.sni;
}
// === 2. Обработка Hysteria2 ===
if (type === 'hysteria2-udp') {
let port = 0;
@@ -82,6 +82,11 @@ export class InboundConfigDto {
@IsString()
@IsOptional()
keyFile?: string;
// ⬇️ НОВОЕ ПОЛЕ ДЛЯ HAPP ROUTING ⬇️
@IsString()
@IsOptional()
routingProfile?: string;
}
export class CreateSubscriptionDto {
@@ -40,6 +40,7 @@ export class Subscription {
name?: string;
certificateFile?: string;
keyFile?: string;
routingProfile?: string;
}>;
@Column({ nullable: true })