mirror of
https://github.com/2dust/v2rayNG.git
synced 2026-10-29 06:31:54 +00:00
Delete redundant fields (#6216)
This commit is contained in:
1 parent
200c59f773
commit
b9c2decb34
3 files changed
+11
-50
No files matched your search
@@ -17,7 +17,8 @@
|
|||||||
"statsOutboundDownlink": true
|
"statsOutboundDownlink": true
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"inbounds": [{
|
"inbounds": [
|
||||||
|
{
|
||||||
"tag": "socks",
|
"tag": "socks",
|
||||||
"port": 10808,
|
"port": 10808,
|
||||||
"protocol": "socks",
|
"protocol": "socks",
|
||||||
@@ -36,34 +37,13 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"outbounds": [{
|
"outbounds": [
|
||||||
|
{
|
||||||
"tag": "proxy",
|
"tag": "proxy",
|
||||||
"protocol": "vmess",
|
"protocol": "vmess",
|
||||||
"settings": {
|
"settings": {
|
||||||
"vnext": [
|
|
||||||
{
|
|
||||||
"address": "v2ray.cool",
|
"address": "v2ray.cool",
|
||||||
"port": 10086,
|
"port": 10086
|
||||||
"users": [
|
|
||||||
{
|
|
||||||
"id": "a3482e88-686a-4a58-8126-99c9df64b7bf",
|
|
||||||
"alterId": 0,
|
|
||||||
"security": "auto",
|
|
||||||
"level": 8
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"servers": [
|
|
||||||
{
|
|
||||||
"address": "v2ray.cool",
|
|
||||||
"method": "chacha20",
|
|
||||||
"ota": false,
|
|
||||||
"password": "123456",
|
|
||||||
"port": 10086,
|
|
||||||
"level": 8
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
},
|
||||||
"streamSettings": {
|
"streamSettings": {
|
||||||
"network": "tcp"
|
"network": "tcp"
|
||||||
|
|||||||
@@ -17,7 +17,8 @@
|
|||||||
"statsOutboundDownlink": true
|
"statsOutboundDownlink": true
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"inbounds": [{
|
"inbounds": [
|
||||||
|
{
|
||||||
"tag": "socks",
|
"tag": "socks",
|
||||||
"port": 10808,
|
"port": 10808,
|
||||||
"protocol": "socks",
|
"protocol": "socks",
|
||||||
@@ -53,34 +54,13 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"outbounds": [{
|
"outbounds": [
|
||||||
|
{
|
||||||
"tag": "proxy",
|
"tag": "proxy",
|
||||||
"protocol": "vmess",
|
"protocol": "vmess",
|
||||||
"settings": {
|
"settings": {
|
||||||
"vnext": [
|
|
||||||
{
|
|
||||||
"address": "v2ray.cool",
|
"address": "v2ray.cool",
|
||||||
"port": 10086,
|
"port": 10086
|
||||||
"users": [
|
|
||||||
{
|
|
||||||
"id": "a3482e88-686a-4a58-8126-99c9df64b7bf",
|
|
||||||
"alterId": 0,
|
|
||||||
"security": "auto",
|
|
||||||
"level": 8
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"servers": [
|
|
||||||
{
|
|
||||||
"address": "v2ray.cool",
|
|
||||||
"method": "chacha20",
|
|
||||||
"ota": false,
|
|
||||||
"password": "123456",
|
|
||||||
"port": 10086,
|
|
||||||
"level": 8
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
},
|
||||||
"streamSettings": {
|
"streamSettings": {
|
||||||
"network": "tcp"
|
"network": "tcp"
|
||||||
|
|||||||
@@ -255,6 +255,7 @@ object CoreOutboundBuilder {
|
|||||||
outboundBean?.settings?.let { wireguard ->
|
outboundBean?.settings?.let { wireguard ->
|
||||||
wireguard.secretKey = profileItem.secretKey
|
wireguard.secretKey = profileItem.secretKey
|
||||||
wireguard.address = addresses
|
wireguard.address = addresses
|
||||||
|
wireguard.port = null
|
||||||
wireguard.peers?.firstOrNull()?.let { peer ->
|
wireguard.peers?.firstOrNull()?.let { peer ->
|
||||||
peer.publicKey = profileItem.publicKey.orEmpty()
|
peer.publicKey = profileItem.publicKey.orEmpty()
|
||||||
peer.preSharedKey = profileItem.preSharedKey?.nullIfBlank()
|
peer.preSharedKey = profileItem.preSharedKey?.nullIfBlank()
|
||||||
|
|||||||
Reference in new issue
Block a user