mirror of
https://github.com/XTLS/Xray-docs-next.git
synced 2026-10-05 21:38:18 +03:00
Move code focus
This commit is contained in:
@@ -29,8 +29,8 @@ HTTP 协议。
|
||||
{
|
||||
// ...
|
||||
"protocol": "http",
|
||||
// [!code focus:10]
|
||||
"settings": {
|
||||
// [!code focus:8]
|
||||
"users": [
|
||||
{
|
||||
"user": "my-username",
|
||||
|
||||
@@ -14,8 +14,8 @@
|
||||
{
|
||||
// ...
|
||||
"protocol": "hysteria",
|
||||
// [!code focus:10]
|
||||
"settings": {
|
||||
// [!code focus:8]
|
||||
"version": 2,
|
||||
"users": [
|
||||
{
|
||||
|
||||
@@ -37,8 +37,8 @@ Shadowsocks 2022 新协议格式提升了性能并带有完整的重放保护,
|
||||
{
|
||||
// ...
|
||||
"protocol": "shadowsocks",
|
||||
// [!code focus:13]
|
||||
"settings": {
|
||||
// [!code focus:11]
|
||||
"network": "tcp,udp",
|
||||
"method": "aes-256-gcm",
|
||||
"password": "114514",
|
||||
|
||||
@@ -18,8 +18,8 @@
|
||||
{
|
||||
// ...
|
||||
"protocol": "socks",
|
||||
// [!code focus:12]
|
||||
"settings": {
|
||||
// [!code focus:10]
|
||||
"auth": "noauth",
|
||||
"users": [
|
||||
{
|
||||
|
||||
@@ -16,8 +16,8 @@ Trojan 被设计工作在正确配置的加密 TLS 隧道
|
||||
{
|
||||
// ...
|
||||
"protocol": "trojan",
|
||||
// [!code focus:14]
|
||||
"settings": {
|
||||
// [!code focus:12]
|
||||
"users": [
|
||||
{
|
||||
"password": "password",
|
||||
|
||||
@@ -14,8 +14,8 @@ Android 需要外部 APP 传入 TUN FD,使用 VPN Service 重定向流量。
|
||||
{
|
||||
// ...
|
||||
"protocol": "tun",
|
||||
// [!code focus:9]
|
||||
"settings": {
|
||||
// [!code focus:7]
|
||||
"name": "xray0",
|
||||
"mtu": 1500,
|
||||
"gateway": ["10.0.0.1/16", "fc00::1/64"],
|
||||
|
||||
@@ -12,8 +12,8 @@ Tunnel(隧道),旧称 dokodemo-door(任意门),可以监听数个本
|
||||
{
|
||||
// ...
|
||||
"protocol": "tunnel",
|
||||
// [!code focus:12]
|
||||
"settings": {
|
||||
// [!code focus:10]
|
||||
"allowedNetwork": "tcp",
|
||||
"rewriteAddress": "8.8.8.8",
|
||||
"rewritePort": 53,
|
||||
|
||||
@@ -14,8 +14,8 @@ VLESS 是一个无状态的轻量传输协议,它分为入站和出站两部
|
||||
{
|
||||
// ...
|
||||
"protocol": "vless",
|
||||
// [!code focus:17]
|
||||
"settings": {
|
||||
// [!code focus:15]
|
||||
"users": [
|
||||
{
|
||||
"id": "5783a3e7-e373-51cd-8642-c83782b807c5",
|
||||
|
||||
@@ -16,8 +16,8 @@ VMess 依赖于系统时间,请确保使用 Xray 的系统 UTC 时间误差在
|
||||
{
|
||||
// ...
|
||||
"protocol": "vmess",
|
||||
// [!code focus:12]
|
||||
"settings": {
|
||||
// [!code focus:10]
|
||||
"users": [
|
||||
{
|
||||
"id": "5783a3e7-e373-51cd-8642-c83782b807c5",
|
||||
|
||||
@@ -16,8 +16,8 @@ User-space Wireguard 协议实现。
|
||||
{
|
||||
// ...
|
||||
"protocol": "wireguard",
|
||||
// [!code focus:10]
|
||||
"settings": {
|
||||
// [!code focus:8]
|
||||
"secretKey": "PRIVATE_KEY",
|
||||
"peers": [
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user