fix: TUIC, Juicity and AnyTLS no longer skip certificate verification

v2rayA dropped allowInsecure years ago: VMess, VLESS and Trojan links carrying it
are parsed and the flag ignored, and a self-signed server is reached by pinning
its certificate. The three native protocols added in May brought the switch back
in their own config, service objects and forms. It goes everywhere: the core's
dialers verify or pin (the proto field 5 is reserved), the service no longer
parses, stores or exports allow_insecure for them, the forms lose the switch,
the codec ignores the parameter, and the quick-start docs say so in six locales.
Certificate pinning stays as it was.
This commit is contained in:
Zakk committed 2026-09-22 02:40:22 +10:00
1 parent 073fc5299a
commit 1c39255010
33 files changed
+63 -169

No files matched your search

+4 -14
View File
@@ -1,7 +1,7 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.36.11
// protoc v7.35.1
// protoc v7.34.2
// source: hint/proxy/anytls/config.proto
package anytls
@@ -31,8 +31,6 @@ type ClientConfig struct {
Password string `protobuf:"bytes,3,opt,name=password,proto3" json:"password,omitempty"`
// TLS SNI override (optional)
Sni string `protobuf:"bytes,4,opt,name=sni,proto3" json:"sni,omitempty"`
// Allow insecure TLS (skip verification)
AllowInsecure bool `protobuf:"varint,5,opt,name=allow_insecure,json=allowInsecure,proto3" json:"allow_insecure,omitempty"`
// Minimum number of idle sessions to keep
MinIdleSessions uint32 `protobuf:"varint,6,opt,name=min_idle_sessions,json=minIdleSessions,proto3" json:"min_idle_sessions,omitempty"`
// Pinned peer certificate chain SHA256 hash. Accepts hex or base64.
@@ -99,13 +97,6 @@ func (x *ClientConfig) GetSni() string {
return ""
}
func (x *ClientConfig) GetAllowInsecure() bool {
if x != nil {
return x.AllowInsecure
}
return false
}
func (x *ClientConfig) GetMinIdleSessions() uint32 {
if x != nil {
return x.MinIdleSessions
@@ -124,15 +115,14 @@ var File_hint_proxy_anytls_config_proto protoreflect.FileDescriptor
const file_hint_proxy_anytls_config_proto_rawDesc = "" +
"\n" +
"\x1ehint/proxy/anytls/config.proto\x12\x13v2raya.proxy.anytls\"\x8d\x02\n" +
"\x1ehint/proxy/anytls/config.proto\x12\x13v2raya.proxy.anytls\"\xfc\x01\n" +
"\fClientConfig\x12\x18\n" +
"\aaddress\x18\x01 \x01(\tR\aaddress\x12\x12\n" +
"\x04port\x18\x02 \x01(\rR\x04port\x12\x1a\n" +
"\bpassword\x18\x03 \x01(\tR\bpassword\x12\x10\n" +
"\x03sni\x18\x04 \x01(\tR\x03sni\x12%\n" +
"\x0eallow_insecure\x18\x05 \x01(\bR\rallowInsecure\x12*\n" +
"\x03sni\x18\x04 \x01(\tR\x03sni\x12*\n" +
"\x11min_idle_sessions\x18\x06 \x01(\rR\x0fminIdleSessions\x12N\n" +
"$pinned_peer_certificate_chain_sha256\x18\a \x01(\tR pinnedPeerCertificateChainSha256B1Z/github.com/v2rayA/v2raya-core/hint/proxy/anytlsb\x06proto3"
"$pinned_peer_certificate_chain_sha256\x18\a \x01(\tR pinnedPeerCertificateChainSha256J\x04\b\x05\x10\x06R\x0eallow_insecureB1Z/github.com/v2rayA/v2raya-core/hint/proxy/anytlsb\x06proto3"
var (
file_hint_proxy_anytls_config_proto_rawDescOnce sync.Once
+3 -2
View File
@@ -12,8 +12,9 @@ message ClientConfig {
string password = 3;
// TLS SNI override (optional)
string sni = 4;
// Allow insecure TLS (skip verification)
bool allow_insecure = 5;
// 5 was allow_insecure; certificate pinning is the way to a self-signed server
reserved 5;
reserved "allow_insecure";
// Minimum number of idle sessions to keep
uint32 min_idle_sessions = 6;
// Pinned peer certificate chain SHA256 hash. Accepts hex or base64.
+1 -2
View File
@@ -57,8 +57,7 @@ func NewClient(ctx context.Context, config *ClientConfig) (*Client, error) {
}
tlsCfg := &tls.Config{
ServerName: sni,
InsecureSkipVerify: config.AllowInsecure, // #nosec G402 -- user-configurable
ServerName: sni,
}
if config.PinnedPeerCertificateChainSha256 != "" {
hash, err := tlsutil.ParsePinnedChain(config.PinnedPeerCertificateChainSha256)
+4 -14
View File
@@ -1,7 +1,7 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.36.11
// protoc v7.34.1
// protoc v7.34.2
// source: hint/proxy/juicity/config.proto
package juicity
@@ -31,8 +31,6 @@ type ClientConfig struct {
Password string `protobuf:"bytes,3,opt,name=password,proto3" json:"password,omitempty"`
// TLS SNI override (optional)
Sni string `protobuf:"bytes,4,opt,name=sni,proto3" json:"sni,omitempty"`
// Allow insecure TLS (skip verification)
AllowInsecure bool `protobuf:"varint,5,opt,name=allow_insecure,json=allowInsecure,proto3" json:"allow_insecure,omitempty"`
// Congestion control algorithm: bbr, cubic, new_reno
CongestionControl string `protobuf:"bytes,6,opt,name=congestion_control,json=congestionControl,proto3" json:"congestion_control,omitempty"`
// Pinned certificate chain SHA256 hash (optional)
@@ -99,13 +97,6 @@ func (x *ClientConfig) GetSni() string {
return ""
}
func (x *ClientConfig) GetAllowInsecure() bool {
if x != nil {
return x.AllowInsecure
}
return false
}
func (x *ClientConfig) GetCongestionControl() string {
if x != nil {
return x.CongestionControl
@@ -124,15 +115,14 @@ var File_hint_proxy_juicity_config_proto protoreflect.FileDescriptor
const file_hint_proxy_juicity_config_proto_rawDesc = "" +
"\n" +
"\x1fhint/proxy/juicity/config.proto\x12\x14v2raya.proxy.juicity\"\xf8\x01\n" +
"\x1fhint/proxy/juicity/config.proto\x12\x14v2raya.proxy.juicity\"\xe7\x01\n" +
"\fClientConfig\x12\x18\n" +
"\aaddress\x18\x01 \x01(\tR\aaddress\x12\x12\n" +
"\x04uuid\x18\x02 \x01(\tR\x04uuid\x12\x1a\n" +
"\bpassword\x18\x03 \x01(\tR\bpassword\x12\x10\n" +
"\x03sni\x18\x04 \x01(\tR\x03sni\x12%\n" +
"\x0eallow_insecure\x18\x05 \x01(\bR\rallowInsecure\x12-\n" +
"\x03sni\x18\x04 \x01(\tR\x03sni\x12-\n" +
"\x12congestion_control\x18\x06 \x01(\tR\x11congestionControl\x126\n" +
"\x17pinned_certchain_sha256\x18\a \x01(\tR\x15pinnedCertchainSha256B2Z0github.com/v2rayA/v2raya-core/hint/proxy/juicityb\x06proto3"
"\x17pinned_certchain_sha256\x18\a \x01(\tR\x15pinnedCertchainSha256J\x04\b\x05\x10\x06R\x0eallow_insecureB2Z0github.com/v2rayA/v2raya-core/hint/proxy/juicityb\x06proto3"
var (
file_hint_proxy_juicity_config_proto_rawDescOnce sync.Once
+3 -2
View File
@@ -12,8 +12,9 @@ message ClientConfig {
string password = 3;
// TLS SNI override (optional)
string sni = 4;
// Allow insecure TLS (skip verification)
bool allow_insecure = 5;
// 5 was allow_insecure; certificate pinning is the way to a self-signed server
reserved 5;
reserved "allow_insecure";
// Congestion control algorithm: bbr, cubic, new_reno
string congestion_control = 6;
// Pinned certificate chain SHA256 hash (optional)
+3 -4
View File
@@ -56,10 +56,9 @@ func NewClient(ctx context.Context, config *ClientConfig) (*Client, error) {
}
tlsCfg := &tls.Config{
ServerName: sni,
InsecureSkipVerify: config.AllowInsecure, // #nosec G402 -- user-configurable
NextProtos: []string{"h3"},
MinVersion: tls.VersionTLS13,
ServerName: sni,
NextProtos: []string{"h3"},
MinVersion: tls.VersionTLS13,
}
if config.PinnedCertchainSha256 != "" {
hash, err := tlsutil.ParsePinnedChain(config.PinnedCertchainSha256)
+4 -14
View File
@@ -1,7 +1,7 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.36.11
// protoc v7.35.1
// protoc v7.34.2
// source: hint/proxy/tuic/config.proto
package tuic
@@ -31,8 +31,6 @@ type ClientConfig struct {
Password string `protobuf:"bytes,3,opt,name=password,proto3" json:"password,omitempty"`
// TLS SNI override (optional)
Sni string `protobuf:"bytes,4,opt,name=sni,proto3" json:"sni,omitempty"`
// Allow insecure TLS (skip verification)
AllowInsecure bool `protobuf:"varint,5,opt,name=allow_insecure,json=allowInsecure,proto3" json:"allow_insecure,omitempty"`
// Congestion control algorithm: bbr, cubic, new_reno
CongestionControl string `protobuf:"bytes,6,opt,name=congestion_control,json=congestionControl,proto3" json:"congestion_control,omitempty"`
// UDP relay mode: native or quic
@@ -105,13 +103,6 @@ func (x *ClientConfig) GetSni() string {
return ""
}
func (x *ClientConfig) GetAllowInsecure() bool {
if x != nil {
return x.AllowInsecure
}
return false
}
func (x *ClientConfig) GetCongestionControl() string {
if x != nil {
return x.CongestionControl
@@ -151,20 +142,19 @@ var File_hint_proxy_tuic_config_proto protoreflect.FileDescriptor
const file_hint_proxy_tuic_config_proto_rawDesc = "" +
"\n" +
"\x1chint/proxy/tuic/config.proto\x12\x11v2raya.proxy.tuic\"\xeb\x02\n" +
"\x1chint/proxy/tuic/config.proto\x12\x11v2raya.proxy.tuic\"\xda\x02\n" +
"\fClientConfig\x12\x18\n" +
"\aaddress\x18\x01 \x01(\tR\aaddress\x12\x12\n" +
"\x04uuid\x18\x02 \x01(\tR\x04uuid\x12\x1a\n" +
"\bpassword\x18\x03 \x01(\tR\bpassword\x12\x10\n" +
"\x03sni\x18\x04 \x01(\tR\x03sni\x12%\n" +
"\x0eallow_insecure\x18\x05 \x01(\bR\rallowInsecure\x12-\n" +
"\x03sni\x18\x04 \x01(\tR\x03sni\x12-\n" +
"\x12congestion_control\x18\x06 \x01(\tR\x11congestionControl\x12$\n" +
"\x0eudp_relay_mode\x18\a \x01(\tR\fudpRelayMode\x12\x12\n" +
"\x04alpn\x18\b \x03(\tR\x04alpn\x12\x1f\n" +
"\vdisable_sni\x18\t \x01(\bR\n" +
"disableSni\x12N\n" +
"$pinned_peer_certificate_chain_sha256\x18\n" +
" \x01(\tR pinnedPeerCertificateChainSha256B/Z-github.com/v2rayA/v2raya-core/hint/proxy/tuicb\x06proto3"
" \x01(\tR pinnedPeerCertificateChainSha256J\x04\b\x05\x10\x06R\x0eallow_insecureB/Z-github.com/v2rayA/v2raya-core/hint/proxy/tuicb\x06proto3"
var (
file_hint_proxy_tuic_config_proto_rawDescOnce sync.Once
+3 -2
View File
@@ -12,8 +12,9 @@ message ClientConfig {
string password = 3;
// TLS SNI override (optional)
string sni = 4;
// Allow insecure TLS (skip verification)
bool allow_insecure = 5;
// 5 was allow_insecure; certificate pinning is the way to a self-signed server
reserved 5;
reserved "allow_insecure";
// Congestion control algorithm: bbr, cubic, new_reno
string congestion_control = 6;
// UDP relay mode: native or quic
+3 -4
View File
@@ -62,10 +62,9 @@ func NewClient(ctx context.Context, config *ClientConfig) (*Client, error) {
}
tlsCfg := &tls.Config{
ServerName: sni,
InsecureSkipVerify: config.AllowInsecure, // #nosec G402 -- user-configurable
NextProtos: alpn,
MinVersion: tls.VersionTLS13,
ServerName: sni,
NextProtos: alpn,
MinVersion: tls.VersionTLS13,
}
if config.PinnedPeerCertificateChainSha256 != "" {
hash, err := tlsutil.ParsePinnedChain(config.PinnedPeerCertificateChainSha256)
@@ -2,7 +2,7 @@
import { describe, expect, test } from "vitest";
import type { VueWrapper } from "@vue/test-utils";
import { defineComponent, h, nextTick, reactive } from "vue";
import { VForm, VSwitch, VTextField } from "vuetify/components";
import { VForm, VTextField } from "vuetify/components";
import { mountWithApp } from "@/test/mount";
import { generateShareLink, parseShareLink } from "@/lib/serverCodec";
import { links } from "@/lib/__fixtures__/links";
@@ -33,13 +33,9 @@ describe("the anytls form", () => {
]) {
expect(field(w, label).get("input").element.value).toBe(value);
}
expect(w.findComponent(VSwitch).get("input").element.checked).toBe(false);
expect(generateShareLink(model)).toBe(fixtures.anytls.back);
await field(w, labels.auth).get("input").setValue("new-secret");
expect(model.auth).toBe("new-secret");
await w.findComponent(VSwitch).get("input").setValue(true);
expect(model.allowInsecure).toBe(true);
expect(parseShareLink(generateShareLink(model)!)?.allowInsecure).toBe(true);
w.unmount();
});
@@ -72,8 +68,6 @@ describe("the anytls form", () => {
});
for (const input of w.findAll('input:not([type="checkbox"])'))
expect((input.element as HTMLInputElement).readOnly).toBe(true);
await w.findComponent(VSwitch).get("input").setValue(true);
expect(model.allowInsecure).toBe(false);
expect(generateShareLink(model)).toBe(fixtures.anytls.back);
w.unmount();
});
@@ -71,14 +71,6 @@ const { t } = useI18n();
dir="ltr"
/>
</v-col>
<v-col cols="12" sm="6">
<v-switch
v-model="model.allowInsecure"
:label="t('configureServer.allowInsecure')"
hide-details
:readonly="readonly"
/>
</v-col>
<v-col cols="12" sm="6">
<v-text-field
v-model="model.minIdleSession"
@@ -1,7 +1,7 @@
// @vitest-environment happy-dom
import { describe, expect, test } from "vitest";
import { defineComponent, h, nextTick, reactive } from "vue";
import { VForm, VSwitch, VTextField } from "vuetify/components";
import { VForm, VTextField } from "vuetify/components";
import { mountWithApp } from "@/test/mount";
import { generateShareLink, parseShareLink } from "@/lib/serverCodec";
import { links } from "@/lib/__fixtures__/links";
@@ -26,8 +26,6 @@ describe("the juicity form", () => {
).toBe("example.com");
await w.get('input[dir="ltr"]').setValue("5.6.7.8");
expect(model.server).toBe("5.6.7.8");
await w.getComponent(VSwitch).get("input").setValue(true);
expect(model.allowInsecure).toBe(true);
w.unmount();
});
@@ -59,8 +57,6 @@ describe("the juicity form", () => {
'input:not([type="checkbox"]):not([type="hidden"])',
))
expect(input.element.readOnly).toBe(true);
await w.getComponent(VSwitch).get("input").trigger("click");
expect(model.allowInsecure).toBe(false);
expect(generateShareLink(model)).toBe(fixtures.juicity.back);
w.unmount();
});
@@ -83,12 +83,5 @@ const { t } = useI18n();
dir="ltr"
/>
</v-col>
<v-col cols="12" sm="6">
<v-switch
v-model="model.allowInsecure"
:label="t('configureServer.allowInsecure')"
:readonly="readonly"
/>
</v-col>
</v-row>
</template>
@@ -1,7 +1,7 @@
// @vitest-environment happy-dom
import { describe, expect, test } from "vitest";
import { defineComponent, h, nextTick, reactive } from "vue";
import { VForm, VSelect, VSwitch, VTextField } from "vuetify/components";
import { VForm, VSelect, VTextField } from "vuetify/components";
import { mountWithApp } from "@/test/mount";
import { generateShareLink, parseShareLink } from "@/lib/serverCodec";
import { links } from "@/lib/__fixtures__/links";
@@ -102,8 +102,6 @@ describe("the tuic form", () => {
'input:not([type="checkbox"]):not([type="hidden"])',
))
expect(input.element.readOnly).toBe(true);
await w.getComponent(VSwitch).get("input").trigger("click");
expect(model.allowInsecure).toBe(false);
expect(generateShareLink(model)).toBe(fixtures.tuic.back);
w.unmount();
});
@@ -98,13 +98,6 @@ const disableSniOptions = computed(() => [
dir="ltr"
/>
</v-col>
<v-col cols="12" sm="6">
<v-switch
v-model="model.allowInsecure"
:label="t('configureServer.allowInsecure')"
:readonly="readonly"
/>
</v-col>
<v-col cols="12" sm="6">
<v-select
v-model="model.disableSni"
-3
View File
@@ -109,7 +109,6 @@ export const juicityModel = () => ({
uuid: "",
password: "",
pinnedCertchainSha256: "",
allowInsecure: false,
protocol: "juicity",
});
export type JuicityModel = ReturnType<typeof juicityModel>;
@@ -124,7 +123,6 @@ export const tuicModel = () => ({
password: "",
pinnedPeerCertSha256: "",
verifyPeerCertByName: "",
allowInsecure: false,
disableSni: false,
alpn: "h3",
udpRelayMode: "native",
@@ -174,7 +172,6 @@ export const anytlsModel = () => ({
sni: "",
pinnedPeerCertSha256: "",
verifyPeerCertByName: "",
allowInsecure: false,
minIdleSession: "",
protocol: "anytls",
});
+1 -1
View File
@@ -16,7 +16,7 @@ Run it with the account and the `--config` directory the service uses (`--lite`
## Import nodes
On the **Proxies** page, **Import** takes share links or a subscription: choose **Server link** for `vmess://`, `vless://`, `ss://`, `trojan://`, `hysteria2://`, `tuic://`, `juicity://`, `anytls://`, `wireguard://`, `socks5://`, `http://` and `https://` links, one per line, or a QR code image; choose **Subscription address** for a subscription. ShadowsocksR links are refused.
On the **Proxies** page, **Import** takes share links or a subscription: choose **Server link** for `vmess://`, `vless://`, `ss://`, `trojan://`, `hysteria2://`, `tuic://`, `juicity://`, `anytls://`, `wireguard://`, `socks5://`, `http://` and `https://` links, one per line, or a QR code image; choose **Subscription address** for a subscription. ShadowsocksR links are refused. `allow_insecure` in a link is ignored: v2rayA never skips certificate verification; for a self-signed server, pin its certificate SHA-256 in the node's form.
Subscriptions keep their nodes together and can be updated by hand or on a schedule (**Settings → Automatically Update Subscriptions**). The mode setting next to it decides whether the update goes through the proxy.
+5 -5
View File
@@ -16,7 +16,7 @@ v2raya --reset-password
## وارد کردن گره‌ها
در صفحهٔ **پروکسی‌ها**، گزینهٔ **وارد کردن** پیوندهای اشتراک‌گذاری یا اشتراک را می‌پذیرد: برای پیوندهای `vmess://`، `vless://`، `ss://`، `trojan://`، `hysteria2://`، `tuic://`، `juicity://`، `anytls://`، `wireguard://`، `socks5://`، `http://` و `https://`، هرکدام در یک خط، یا تصویر کد QR، گزینهٔ **پیوند سرور** را انتخاب کنید؛ برای اشتراک، **نشانی اشتراک** را انتخاب کنید. پیوندهای ShadowsocksR پذیرفته نمی‌شوند.
در صفحهٔ **پروکسی‌ها**، گزینهٔ **وارد کردن** پیوندهای اشتراک‌گذاری یا اشتراک را می‌پذیرد: برای پیوندهای `vmess://`، `vless://`، `ss://`، `trojan://`، `hysteria2://`، `tuic://`، `juicity://`، `anytls://`، `wireguard://`، `socks5://`، `http://` و `https://`، هرکدام در یک خط، یا تصویر کد QR، گزینهٔ **پیوند سرور** را انتخاب کنید؛ برای اشتراک، **نشانی اشتراک** را انتخاب کنید. پیوندهای ShadowsocksR پذیرفته نمی‌شوند. `allow_insecure` در پیوند نادیده گرفته می‌شود: v2rayA هرگز از بررسی گواهی صرف‌نظر نمی‌کند؛ برای سرور خودامضا، SHA-256 گواهی را در فرم گره وارد کنید.
گره‌های هر اشتراک کنار هم نگه داشته می‌شوند و می‌توان آن‌ها را دستی یا طبق زمان‌بندی به‌روز کرد (**تنظیمات → به‌روزرسانی خودکار اشتراک‌ها**). تنظیم حالت در کنار این گزینه مشخص می‌کند که به‌روزرسانی از پروکسی بگذرد یا نه.
@@ -32,10 +32,10 @@ v2raya --reset-password
پس از راه‌اندازی هسته، برنامه‌ها از طریق ورودی‌های محلی به آن وصل می‌شوند:
| ورودی | نشانی | مسیریابی |
| --------------- | ----------------- | --------------------------------------------------- |
| SOCKS5 | `127.0.0.1:20170` | همهٔ ترافیک از `proxy` |
| HTTP | `127.0.0.1:20171` | همهٔ ترافیک از `proxy` |
| ورودی | نشانی | مسیریابی |
| -------------- | ----------------- | -------------------------------------------- |
| SOCKS5 | `127.0.0.1:20170` | همهٔ ترافیک از `proxy` |
| HTTP | `127.0.0.1:20171` | همهٔ ترافیک از `proxy` |
| HTTP با قوانین | `127.0.0.1:20172` | تنظیم **حالت تفکیک ترافیک برای پورت قوانین** |
پورت‌ها در **تنظیمات → نشانی و پورت‌ها** تغییر می‌کنند؛ 0 ورودی را می‌بندد. برای پوشش برنامه‌ها بدون پیکربندی تک‌تک آن‌ها، پروکسی شفاف را روشن کنید.
+5 -5
View File
@@ -16,7 +16,7 @@ v2raya --reset-password
## 노드 가져오기
**프록시** 페이지의 **가져오기**에서 공유 링크나 구독을 가져옵니다. **서버 링크**를 선택하면 `vmess://`, `vless://`, `ss://`, `trojan://`, `hysteria2://`, `tuic://`, `juicity://`, `anytls://`, `wireguard://`, `socks5://`, `http://`, `https://` 링크를 한 줄에 하나씩 입력하거나 QR 코드 이미지를 사용할 수 있습니다. 구독을 가져오려면 **구독 주소**를 선택하세요. ShadowsocksR 링크는 거부됩니다.
**프록시** 페이지의 **가져오기**에서 공유 링크나 구독을 가져옵니다. **서버 링크**를 선택하면 `vmess://`, `vless://`, `ss://`, `trojan://`, `hysteria2://`, `tuic://`, `juicity://`, `anytls://`, `wireguard://`, `socks5://`, `http://`, `https://` 링크를 한 줄에 하나씩 입력하거나 QR 코드 이미지를 사용할 수 있습니다. 구독을 가져오려면 **구독 주소**를 선택하세요. ShadowsocksR 링크는 거부됩니다. 링크의 `allow_insecure`는 무시됩니다. v2rayA는 인증서 검증을 건너뛰지 않으므로, 자체 서명 서버는 노드 양식에 인증서 SHA-256을 고정하세요.
구독에 속한 노드는 함께 관리되며, 수동으로 또는 예약에 따라 업데이트할 수 있습니다(**설정 → 구독 자동 업데이트**). 옆의 모드 설정은 업데이트할 때 프록시를 사용할지 결정합니다.
@@ -32,10 +32,10 @@ v2raya --reset-password
코어가 실행되면 애플리케이션은 로컬 인바운드를 통해 코어에 연결합니다.
| 인바운드 | 주소 | 라우팅 |
| --------------- | ----------------- | --------------------------------------------------- |
| SOCKS5 | `127.0.0.1:20170` | 모든 트래픽을 `proxy`로 전달 |
| HTTP | `127.0.0.1:20171` | 모든 트래픽을 `proxy`로 전달 |
| 인바운드 | 주소 | 라우팅 |
| -------------- | ----------------- | ------------------------------------- |
| SOCKS5 | `127.0.0.1:20170` | 모든 트래픽을 `proxy`로 전달 |
| HTTP | `127.0.0.1:20171` | 모든 트래픽을 `proxy`로 전달 |
| 규칙 적용 HTTP | `127.0.0.1:20172` | **규칙 포트의 트래픽 분할 모드** 설정 |
포트는 **설정 → 주소 및 포트**에서 변경합니다. 0으로 설정하면 인바운드가 닫힙니다. 애플리케이션을 각각 설정하지 않고 프록시를 적용하려면 투명 프록시를 켜세요.
+5 -5
View File
@@ -16,7 +16,7 @@ Execute o comando com a conta e o diretório `--config` usados pelo serviço (ta
## Importar nós
Na página **Proxies**, **Importar** aceita links de compartilhamento ou uma assinatura: escolha **Link do servidor** para links `vmess://`, `vless://`, `ss://`, `trojan://`, `hysteria2://`, `tuic://`, `juicity://`, `anytls://`, `wireguard://`, `socks5://`, `http://` e `https://`, um por linha, ou uma imagem de código QR; escolha **Endereço da assinatura** para uma assinatura. Links ShadowsocksR são recusados.
Na página **Proxies**, **Importar** aceita links de compartilhamento ou uma assinatura: escolha **Link do servidor** para links `vmess://`, `vless://`, `ss://`, `trojan://`, `hysteria2://`, `tuic://`, `juicity://`, `anytls://`, `wireguard://`, `socks5://`, `http://` e `https://`, um por linha, ou uma imagem de código QR; escolha **Endereço da assinatura** para uma assinatura. Links ShadowsocksR são recusados. `allow_insecure` em um link é ignorado: o v2rayA nunca pula a verificação do certificado; para um servidor autoassinado, fixe o SHA-256 do certificado no formulário do nó.
As assinaturas mantêm seus nós agrupados e podem ser atualizadas manualmente ou por agendamento (**Configurações → Atualizar assinaturas automaticamente**). A configuração de modo ao lado determina se a atualização passa pelo proxy.
@@ -32,10 +32,10 @@ As regras de roteamento usam os nomes dos grupos como saídas: `proxy` por padr
Quando o núcleo está em execução, os aplicativos o acessam pelas entradas locais:
| Entrada | Endereço | Roteamento |
| --------------- | ----------------- | --------------------------------------------------- |
| SOCKS5 | `127.0.0.1:20170` | tudo pelo `proxy` |
| HTTP | `127.0.0.1:20171` | tudo pelo `proxy` |
| Entrada | Endereço | Roteamento |
| --------------- | ----------------- | ---------------------------------------------------------------- |
| SOCKS5 | `127.0.0.1:20170` | tudo pelo `proxy` |
| HTTP | `127.0.0.1:20171` | tudo pelo `proxy` |
| HTTP com regras | `127.0.0.1:20172` | a configuração **Modo de divisão de tráfego da porta de regras** |
As portas são alteradas em **Configurações → Endereços e portas**; 0 fecha uma entrada. Para atender aos aplicativos sem configurar cada um, ative o proxy transparente.
+5 -5
View File
@@ -16,7 +16,7 @@ v2raya --reset-password
## Импорт узлов
На странице **Прокси** кнопка **Импортировать** позволяет добавить ссылки на узлы или подписку: выберите **Ссылка на сервер** для ссылок `vmess://`, `vless://`, `ss://`, `trojan://`, `hysteria2://`, `tuic://`, `juicity://`, `anytls://`, `wireguard://`, `socks5://`, `http://` и `https://`, по одной в строке, или изображения с QR-кодом; для подписки выберите **Адрес подписки**. Ссылки ShadowsocksR не принимаются.
На странице **Прокси** кнопка **Импортировать** позволяет добавить ссылки на узлы или подписку: выберите **Ссылка на сервер** для ссылок `vmess://`, `vless://`, `ss://`, `trojan://`, `hysteria2://`, `tuic://`, `juicity://`, `anytls://`, `wireguard://`, `socks5://`, `http://` и `https://`, по одной в строке, или изображения с QR-кодом; для подписки выберите **Адрес подписки**. Ссылки ShadowsocksR не принимаются. `allow_insecure` в ссылке игнорируется: v2rayA не пропускает проверку сертификата; для самоподписанного сервера укажите SHA-256 сертификата в форме узла.
Узлы каждой подписки хранятся вместе; подписки можно обновлять вручную или по расписанию (**Настройки → Автоматически обновлять подписки**). Соседний параметр режима определяет, будет ли обновление выполняться через прокси.
@@ -32,10 +32,10 @@ v2raya --reset-password
После запуска ядра приложения подключаются к нему через локальные входящие порты:
| Входящий порт | Адрес | Маршрутизация |
| --------------- | ----------------- | --------------------------------------------------- |
| SOCKS5 | `127.0.0.1:20170` | всё через `proxy` |
| HTTP | `127.0.0.1:20171` | всё через `proxy` |
| Входящий порт | Адрес | Маршрутизация |
| ---------------- | ----------------- | ------------------------------------------------------ |
| SOCKS5 | `127.0.0.1:20170` | всё через `proxy` |
| HTTP | `127.0.0.1:20171` | всё через `proxy` |
| HTTP с правилами | `127.0.0.1:20172` | параметр **Режим разделения трафика для порта правил** |
Порты меняются в разделе **Настройки → Адреса и порты**; 0 закрывает входящий порт. Чтобы направлять трафик приложений через прокси без отдельной настройки каждого приложения, включите прозрачный прокси.
+1 -1
View File
@@ -16,7 +16,7 @@ v2raya --reset-password
## 导入节点
在**代理**页点**导入**,先选类型:**节点链接**用于 `vmess://`、`vless://`、`ss://`、`trojan://`、`hysteria2://`、`tuic://`、`juicity://`、`anytls://`、`wireguard://`、`socks5://`、`http://`、`https://` 链接(每行一条)或二维码图片,**订阅地址**用于订阅。ShadowsocksR 链接会被拒绝。
在**代理**页点**导入**,先选类型:**节点链接**用于 `vmess://`、`vless://`、`ss://`、`trojan://`、`hysteria2://`、`tuic://`、`juicity://`、`anytls://`、`wireguard://`、`socks5://`、`http://`、`https://` 链接(每行一条)或二维码图片,**订阅地址**用于订阅。ShadowsocksR 链接会被拒绝。链接里的 `allow_insecure` 会被忽略:v2rayA 不跳过证书校验,自签名服务器请在节点表单里填入证书的 SHA-256 指纹。
订阅的节点归在一起,可手动更新,也可按计划更新(**设置 → 自动更新订阅**)。旁边的模式选项决定更新是否经过代理。
@@ -195,7 +195,6 @@
"sni": "example.com",
"pinnedCertchainSha256": "",
"cc": "bbr",
"allowInsecure": false,
"protocol": "juicity"
},
"back": "juicity://b831381d-6324-4d53-ad4f-8cda48b30811:passw0rd@1.2.3.4:443/?congestion_control=bbr&sni=example.com#juicity node"
@@ -215,7 +214,6 @@
"alpn": "h3",
"cc": "bbr",
"udpRelayMode": "native",
"allowInsecure": false,
"protocol": "tuic"
},
"back": "tuic://b831381d-6324-4d53-ad4f-8cda48b30811:passw0rd@1.2.3.4:443/?pinnedPeerCertSha256=&verifyPeerCertByName=&congestion_control=bbr&disable_sni=false&alpn=h3&udp_relay_mode=native&sni=example.com#tuic node"
@@ -270,7 +268,6 @@
"sni": "example.com",
"pinnedPeerCertSha256": "",
"verifyPeerCertByName": "",
"allowInsecure": false,
"minIdleSession": "",
"protocol": "anytls"
},
-15
View File
@@ -246,8 +246,6 @@ export function parseShareLink(url: string): ShareForm | null {
sni: u.params.sni || "",
pinnedCertchainSha256: u.params.pinned_certchain_sha256 || "",
cc: u.params.congestion_control || "bbr",
allowInsecure:
u.params.allow_insecure === "true" || u.params.allowInsecure === "true",
protocol: "juicity",
};
} else if (url.toLowerCase().startsWith("tuic://")) {
@@ -270,8 +268,6 @@ export function parseShareLink(url: string): ShareForm | null {
alpn: u.params.alpn,
cc: u.params.congestion_control || "bbr",
udpRelayMode: u.params.udp_relay_mode || "native",
allowInsecure:
u.params.allow_insecure === "true" || u.params.allow_insecure === "1",
protocol: "tuic",
};
} else if (
@@ -347,8 +343,6 @@ export function parseShareLink(url: string): ShareForm | null {
u.params.verifyPeerCertByName ||
u.params.verify_peer_cert_by_name ||
"",
allowInsecure:
u.params.allow_insecure === "true" || u.params.allow_insecure === "1",
minIdleSession: u.params.minIdleSession || "",
protocol: "anytls",
};
@@ -647,9 +641,6 @@ export function generateShareLink(srcObj: ShareForm): string | null {
if (srcObj.pinnedCertchainSha256 !== "") {
query.pinned_certchain_sha256 = srcObj.pinnedCertchainSha256;
}
if (srcObj.allowInsecure) {
query.allow_insecure = "true";
}
return buildURL({
protocol: "juicity",
username: srcObj.uuid,
@@ -671,9 +662,6 @@ export function generateShareLink(srcObj: ShareForm): string | null {
if (srcObj.sni !== "") {
query.sni = srcObj.sni;
}
if (srcObj.allowInsecure) {
query.allow_insecure = "true";
}
return buildURL({
protocol: "tuic",
username: srcObj.uuid,
@@ -743,9 +731,6 @@ export function generateShareLink(srcObj: ShareForm): string | null {
if (srcObj.verifyPeerCertByName) {
query.verifyPeerCertByName = srcObj.verifyPeerCertByName;
}
if (srcObj.allowInsecure) {
query.allow_insecure = "true";
}
if (srcObj.minIdleSession) {
query.minIdleSession = srcObj.minIdleSession;
}
-1
View File
@@ -390,7 +390,6 @@ export default {
websocketHost: "WebSocket Host",
websocketPath: "WebSocket Path",
congestionControl: "Congestion Control",
allowInsecure: "Allow insecure",
disableSni: "Disable SNI",
udpRelayMode: "UDP Relay Mode",
obfsPassword: "Obfs Password",
-1
View File
@@ -387,7 +387,6 @@ export default {
websocketHost: "میزبان WebSocket",
websocketPath: "مسیر WebSocket",
congestionControl: "کنترل ازدحام",
allowInsecure: "اجازه اتصال ناامن",
disableSni: "غیرفعال‌سازی SNI",
udpRelayMode: "حالت رله UDP",
obfsPassword: "گذرواژه Obfs",
-1
View File
@@ -385,7 +385,6 @@ export default {
websocketHost: "WebSocket 호스트",
websocketPath: "WebSocket 경로",
congestionControl: "혼잡 제어",
allowInsecure: "안전하지 않은 연결 허용",
disableSni: "SNI 비활성화",
udpRelayMode: "UDP 릴레이 모드",
obfsPassword: "Obfs 비밀번호",
-1
View File
@@ -394,7 +394,6 @@ export default {
websocketHost: "Host do WebSocket",
websocketPath: "Caminho do WebSocket",
congestionControl: "Controle de congestionamento",
allowInsecure: "Permitir conexão insegura",
disableSni: "Desativar SNI",
udpRelayMode: "Modo de retransmissão UDP",
obfsPassword: "Senha de obfs",
-1
View File
@@ -390,7 +390,6 @@ export default {
websocketHost: "Хост WebSocket",
websocketPath: "Путь WebSocket",
congestionControl: "Управление перегрузкой",
allowInsecure: "Разрешить небезопасное соединение",
disableSni: "Отключить SNI",
udpRelayMode: "Режим ретрансляции UDP",
obfsPassword: "Пароль Obfs",
-1
View File
@@ -379,7 +379,6 @@ export default {
websocketHost: "WebSocket 域名",
websocketPath: "WebSocket 路径",
congestionControl: "拥塞控制",
allowInsecure: "允许不安全连接",
disableSni: "禁用 SNI",
udpRelayMode: "UDP 中继模式",
obfsPassword: "混淆密码",
+10 -14
View File
@@ -17,12 +17,11 @@ func init() {
}
type AnyTLS struct {
Name string `json:"name"`
Server string `json:"server"`
Port int `json:"port"`
Protocol string `json:"protocol"`
Link string `json:"link"`
AllowInsecure bool `json:"allowInsecure"`
Name string `json:"name"`
Server string `json:"server"`
Port int `json:"port"`
Protocol string `json:"protocol"`
Link string `json:"link"`
}
func NewAnyTLS(link string) (ServerObj, error) {
@@ -39,12 +38,11 @@ func ParseAnyTLSURL(link string) (data *AnyTLS, err error) {
return nil, fmt.Errorf("%w: anytls link for %q has a missing or invalid port; expected anytls://password@host:port", ErrInvalidParameter, u.Hostname())
}
return &AnyTLS{
Name: u.Fragment,
Server: u.Hostname(),
Port: port,
Protocol: "anytls",
Link: link,
AllowInsecure: u.Query().Get("allow_insecure") == "true" || u.Query().Get("allow_insecure") == "1",
Name: u.Fragment,
Server: u.Hostname(),
Port: port,
Protocol: "anytls",
Link: link,
}, nil
}
@@ -55,7 +53,6 @@ type anytlsSettings struct {
Password string `json:"password"`
SNI string `json:"sni,omitempty"`
MinIdleSessions int `json:"min_idle_sessions,omitempty"`
AllowInsecure bool `json:"allow_insecure,omitempty"`
PinnedPeerCertificateChainSha256 string `json:"pinned_peer_certificate_chain_sha256,omitempty"`
VerifyPeerCertByName string `json:"verifyPeerCertByName,omitempty"`
}
@@ -80,7 +77,6 @@ func (s *AnyTLS) Configuration(info PriorInfo) (c Configuration, err error) {
Password: password,
SNI: sni,
MinIdleSessions: minIdle,
AllowInsecure: s.AllowInsecure,
PinnedPeerCertificateChainSha256: q.Get("pinnedPeerCertSha256"),
VerifyPeerCertByName: q.Get("verifyPeerCertByName"),
})
-4
View File
@@ -54,7 +54,6 @@ type juicitySettings struct {
UUID string `json:"uuid"`
Password string `json:"password"`
SNI string `json:"sni,omitempty"`
AllowInsecure bool `json:"allow_insecure,omitempty"`
CongestionControl string `json:"congestion_control,omitempty"`
PinnedSHA256 string `json:"pinned_certchain_sha256,omitempty"`
}
@@ -78,15 +77,12 @@ func (s *Juicity) Configuration(info PriorInfo) (c Configuration, err error) {
congestion = q.Get("congestionControl")
}
pinnedSHA := q.Get("pinned_certchain_sha256")
// accept both "allow_insecure" and "allowInsecure" query spellings
allowInsecure := q.Get("allow_insecure") == "true" || q.Get("allowInsecure") == "true"
settingsJSON, err := json.Marshal(juicitySettings{
Address: net.JoinHostPort(s.Server, strconv.Itoa(s.Port)),
UUID: uuid,
Password: password,
SNI: sni,
AllowInsecure: allowInsecure,
CongestionControl: congestion,
PinnedSHA256: pinnedSHA,
})
-7
View File
@@ -26,7 +26,6 @@ type Tuic struct {
Password string `json:"password"`
Sni string `json:"sni"`
DisableSni bool `json:"disableSni"`
AllowInsecure bool `json:"allowInsecure"`
Alpn string `json:"alpn"`
CongestionControl string `json:"congestionControl"`
UdpRelayMode string `json:"udpRelayMode"`
@@ -72,7 +71,6 @@ func ParseTuicURL(link string) (data *Tuic, err error) {
Password: password,
Sni: u.Query().Get("sni"),
DisableSni: u.Query().Get("disable_sni") == "true" || u.Query().Get("disable_sni") == "1",
AllowInsecure: u.Query().Get("allow_insecure") == "true" || u.Query().Get("allow_insecure") == "1",
Alpn: alpn,
CongestionControl: u.Query().Get("congestion_control"),
UdpRelayMode: u.Query().Get("udp_relay_mode"),
@@ -94,7 +92,6 @@ type tuicSettings struct {
UdpRelayMode string `json:"udp_relay_mode,omitempty"`
Alpn []string `json:"alpn,omitempty"`
DisableSni bool `json:"disable_sni,omitempty"`
AllowInsecure bool `json:"allow_insecure,omitempty"`
PinnedPeerCertificateChainSha256 string `json:"pinned_peer_certificate_chain_sha256,omitempty"`
VerifyPeerCertByName string `json:"verifyPeerCertByName,omitempty"`
}
@@ -114,7 +111,6 @@ func (s *Tuic) Configuration(info PriorInfo) (c Configuration, err error) {
UdpRelayMode: s.UdpRelayMode,
Alpn: alpn,
DisableSni: s.DisableSni,
AllowInsecure: s.AllowInsecure,
PinnedPeerCertificateChainSha256: s.PinnedPeerCertSha256,
VerifyPeerCertByName: s.VerifyPeerCertByName,
})
@@ -145,9 +141,6 @@ func (s *Tuic) ExportToURL() string {
if s.DisableSni {
query.Set("disable_sni", "true")
}
if s.AllowInsecure {
query.Set("allow_insecure", "true")
}
setValue(&query, "sni", s.Sni)
alpn := strings.ReplaceAll(s.Alpn, " ", "")
if alpn == "" {