🐛 fix: Update protocol fields to use 'obfs' instead of 'security' and adjust related configurations
This commit is contained in:
@@ -225,7 +225,6 @@ export default function Content() {
|
||||
{Array.from({ length: 16 }).map((_, i) => {
|
||||
const row = Math.floor(i / 4);
|
||||
const col = i % 4;
|
||||
// 计算位置百分比
|
||||
const top = 10 + row * 25 + (col % 2 === 0 ? 5 : -5);
|
||||
const left = 5 + col * 30 + (row % 2 === 0 ? 0 : 10);
|
||||
|
||||
|
||||
@@ -39,7 +39,6 @@ const DurationSelector: React.FC<DurationSelectorProps> = ({
|
||||
</div>
|
||||
);
|
||||
|
||||
// 查找当前选中项的折扣信息
|
||||
const currentDiscount = discounts?.find((item) => item.quantity === quantity)?.discount;
|
||||
const discountPercentage = currentDiscount ? 100 - currentDiscount : 0;
|
||||
|
||||
|
||||
@@ -52,7 +52,6 @@ export default function Renewal({ id, subscribe }: Readonly<RenewalProps>) {
|
||||
subscribe_id: subscribe.id,
|
||||
} as API.PurchaseOrderRequest);
|
||||
const result = data.data;
|
||||
// 请求成功时保存数据
|
||||
if (result) {
|
||||
lastSuccessOrderRef.current = result;
|
||||
}
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
// @ts-ignore
|
||||
|
||||
/* eslint-disable */
|
||||
import request from '@/utils/request';
|
||||
|
||||
/** Apple Login Callback POST /v1/auth/oauth/callback/apple */
|
||||
|
||||
+28
@@ -363,6 +363,26 @@ declare namespace API {
|
||||
node_secret: string;
|
||||
node_pull_interval: number;
|
||||
node_push_interval: number;
|
||||
traffic_report_threshold: number;
|
||||
ip_strategy: string;
|
||||
dns: NodeDNS[];
|
||||
block: string[];
|
||||
outbound: NodeOutbound[];
|
||||
};
|
||||
|
||||
type NodeDNS = {
|
||||
proto: string;
|
||||
address: string;
|
||||
domains: string[];
|
||||
};
|
||||
|
||||
type NodeOutbound = {
|
||||
name: string;
|
||||
protocol: string;
|
||||
address: string;
|
||||
port: number;
|
||||
password: string;
|
||||
rules: string[];
|
||||
};
|
||||
|
||||
type NodeRelay = {
|
||||
@@ -562,6 +582,14 @@ declare namespace API {
|
||||
encryption_client_padding?: string;
|
||||
/** encryption password */
|
||||
encryption_password?: string;
|
||||
/** Traffic ratio, default is 1 */
|
||||
ratio?: number;
|
||||
/** Certificate mode, `none`|`http`|`dns`|`self` */
|
||||
cert_mode?: string;
|
||||
/** DNS provider for certificate */
|
||||
cert_dns_provider?: string;
|
||||
/** Environment for DNS provider */
|
||||
cert_dns_env?: string;
|
||||
};
|
||||
|
||||
type PubilcRegisterConfig = {
|
||||
|
||||
Vendored
+28
@@ -378,6 +378,26 @@ declare namespace API {
|
||||
node_secret: string;
|
||||
node_pull_interval: number;
|
||||
node_push_interval: number;
|
||||
traffic_report_threshold: number;
|
||||
ip_strategy: string;
|
||||
dns: NodeDNS[];
|
||||
block: string[];
|
||||
outbound: NodeOutbound[];
|
||||
};
|
||||
|
||||
type NodeDNS = {
|
||||
proto: string;
|
||||
address: string;
|
||||
domains: string[];
|
||||
};
|
||||
|
||||
type NodeOutbound = {
|
||||
name: string;
|
||||
protocol: string;
|
||||
address: string;
|
||||
port: number;
|
||||
password: string;
|
||||
rules: string[];
|
||||
};
|
||||
|
||||
type NodeRelay = {
|
||||
@@ -601,6 +621,14 @@ declare namespace API {
|
||||
encryption_client_padding?: string;
|
||||
/** encryption password */
|
||||
encryption_password?: string;
|
||||
/** Traffic ratio, default is 1 */
|
||||
ratio?: number;
|
||||
/** Certificate mode, `none`|`http`|`dns`|`self` */
|
||||
cert_mode?: string;
|
||||
/** DNS provider for certificate */
|
||||
cert_dns_provider?: string;
|
||||
/** Environment for DNS provider */
|
||||
cert_dns_env?: string;
|
||||
};
|
||||
|
||||
type PubilcRegisterConfig = {
|
||||
|
||||
Reference in New Issue
Block a user