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:
@@ -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 })
|
||||
|
||||
Reference in New Issue
Block a user