@@ -33,6 +33,7 @@ public ResultClientInformation()
33
33
34
34
if ( String . Equals ( MainWindow . proxyType , "V2Ray" ) )
35
35
{
36
+ //显示V2Ray参数,隐藏其他
36
37
GroupBoxV2rayClient . Visibility = Visibility . Visible ;
37
38
GroupBoxTrojanGoClient . Visibility = Visibility . Collapsed ;
38
39
GroupBoxTrojanClient . Visibility = Visibility . Collapsed ;
@@ -57,7 +58,7 @@ public ResultClientInformation()
57
58
TextBoxHost . Text = "" ;
58
59
//路径Path
59
60
TextBoxPath . Text = MainWindow . ReceiveConfigurationParameters [ 3 ] ;
60
- //QUIC密钥
61
+ //QUIC密钥/mKCP Seed
61
62
TextBoxQuicKey . Text = MainWindow . ReceiveConfigurationParameters [ 6 ] ;
62
63
63
64
if ( String . Equals ( MainWindow . ReceiveConfigurationParameters [ 0 ] , "WebSocketTLS2Web" ) )
@@ -168,7 +169,7 @@ public ResultClientInformation()
168
169
TextBoxQuicKey . Text = MainWindow . ReceiveConfigurationParameters [ 6 ] ;
169
170
TextBoxTLS . Text = "none" ;
170
171
HidePath ( ) ;
171
- ShowQuicKey ( ) ;
172
+ ShowQuicKey ( ) ; //显示mKCP Seed
172
173
}
173
174
else if ( String . Equals ( MainWindow . ReceiveConfigurationParameters [ 0 ] , "mKCP2SRTP" ) )
174
175
{
@@ -177,7 +178,7 @@ public ResultClientInformation()
177
178
TextBoxQuicKey . Text = MainWindow . ReceiveConfigurationParameters [ 6 ] ;
178
179
TextBoxTLS . Text = "none" ;
179
180
HidePath ( ) ;
180
- ShowQuicKey ( ) ;
181
+ ShowQuicKey ( ) ; //显示mKCP Seed
181
182
}
182
183
else if ( String . Equals ( MainWindow . ReceiveConfigurationParameters [ 0 ] , "mKCPuTP" ) )
183
184
{
@@ -186,7 +187,7 @@ public ResultClientInformation()
186
187
TextBoxQuicKey . Text = MainWindow . ReceiveConfigurationParameters [ 6 ] ;
187
188
TextBoxTLS . Text = "none" ;
188
189
HidePath ( ) ;
189
- ShowQuicKey ( ) ;
190
+ ShowQuicKey ( ) ; //显示mKCP Seed
190
191
}
191
192
else if ( String . Equals ( MainWindow . ReceiveConfigurationParameters [ 0 ] , "mKCP2WechatVideo" ) )
192
193
{
@@ -195,7 +196,7 @@ public ResultClientInformation()
195
196
TextBoxQuicKey . Text = MainWindow . ReceiveConfigurationParameters [ 6 ] ;
196
197
TextBoxTLS . Text = "none" ;
197
198
HidePath ( ) ;
198
- ShowQuicKey ( ) ;
199
+ ShowQuicKey ( ) ; //显示mKCP Seed
199
200
}
200
201
else if ( String . Equals ( MainWindow . ReceiveConfigurationParameters [ 0 ] , "mKCP2DTLS" ) )
201
202
{
@@ -204,7 +205,7 @@ public ResultClientInformation()
204
205
TextBoxQuicKey . Text = MainWindow . ReceiveConfigurationParameters [ 6 ] ;
205
206
TextBoxTLS . Text = "none" ;
206
207
HidePath ( ) ;
207
- ShowQuicKey ( ) ;
208
+ ShowQuicKey ( ) ; //显示mKCP Seed
208
209
}
209
210
else if ( String . Equals ( MainWindow . ReceiveConfigurationParameters [ 0 ] , "mKCP2WireGuard" ) )
210
211
{
@@ -213,7 +214,7 @@ public ResultClientInformation()
213
214
TextBoxQuicKey . Text = MainWindow . ReceiveConfigurationParameters [ 6 ] ;
214
215
TextBoxTLS . Text = "none" ;
215
216
HidePath ( ) ;
216
- ShowQuicKey ( ) ;
217
+ ShowQuicKey ( ) ; //显示mKCP Seed
217
218
}
218
219
else if ( String . Equals ( MainWindow . ReceiveConfigurationParameters [ 0 ] , "QuicNone" ) )
219
220
{
@@ -222,7 +223,7 @@ public ResultClientInformation()
222
223
TextBoxQuicKey . Text = MainWindow . ReceiveConfigurationParameters [ 6 ] ;
223
224
TextBoxTLS . Text = "none" ;
224
225
HidePath ( ) ;
225
- ShowQuicKey ( ) ;
226
+ ShowQuicKey ( ) ; //显示QUIC密钥
226
227
}
227
228
else if ( String . Equals ( MainWindow . ReceiveConfigurationParameters [ 0 ] , "QuicSRTP" ) )
228
229
{
@@ -231,7 +232,7 @@ public ResultClientInformation()
231
232
TextBoxQuicKey . Text = MainWindow . ReceiveConfigurationParameters [ 6 ] ;
232
233
TextBoxTLS . Text = "none" ;
233
234
HidePath ( ) ;
234
- ShowQuicKey ( ) ;
235
+ ShowQuicKey ( ) ; //显示QUIC密钥
235
236
}
236
237
else if ( String . Equals ( MainWindow . ReceiveConfigurationParameters [ 0 ] , "Quic2uTP" ) )
237
238
{
@@ -240,7 +241,7 @@ public ResultClientInformation()
240
241
TextBoxQuicKey . Text = MainWindow . ReceiveConfigurationParameters [ 6 ] ;
241
242
TextBoxTLS . Text = "none" ;
242
243
HidePath ( ) ;
243
- ShowQuicKey ( ) ;
244
+ ShowQuicKey ( ) ; //显示QUIC密钥
244
245
}
245
246
else if ( String . Equals ( MainWindow . ReceiveConfigurationParameters [ 0 ] , "QuicWechatVideo" ) )
246
247
{
@@ -249,7 +250,7 @@ public ResultClientInformation()
249
250
TextBoxQuicKey . Text = MainWindow . ReceiveConfigurationParameters [ 6 ] ;
250
251
TextBoxTLS . Text = "none" ;
251
252
HidePath ( ) ;
252
- ShowQuicKey ( ) ;
253
+ ShowQuicKey ( ) ; //显示QUIC密钥
253
254
}
254
255
else if ( String . Equals ( MainWindow . ReceiveConfigurationParameters [ 0 ] , "QuicDTLS" ) )
255
256
{
@@ -258,7 +259,7 @@ public ResultClientInformation()
258
259
TextBoxQuicKey . Text = MainWindow . ReceiveConfigurationParameters [ 6 ] ;
259
260
TextBoxTLS . Text = "none" ;
260
261
HidePath ( ) ;
261
- ShowQuicKey ( ) ;
262
+ ShowQuicKey ( ) ; //显示QUIC密钥
262
263
}
263
264
else if ( String . Equals ( MainWindow . ReceiveConfigurationParameters [ 0 ] , "QuicWireGuard" ) )
264
265
{
@@ -267,7 +268,7 @@ public ResultClientInformation()
267
268
TextBoxQuicKey . Text = MainWindow . ReceiveConfigurationParameters [ 6 ] ;
268
269
TextBoxTLS . Text = "none" ;
269
270
HidePath ( ) ;
270
- ShowQuicKey ( ) ;
271
+ ShowQuicKey ( ) ; //显示QUIC密钥
271
272
}
272
273
273
274
else
@@ -421,8 +422,12 @@ private void GenerateV2rayShareQRcodeAndBase64Url()
421
422
v2rayNjsonObject [ "aid" ] = TextBoxUUIDextra . Text ; //设置额外ID
422
423
v2rayNjsonObject [ "net" ] = TextBoxTransmission . Text ; //设置传输模式
423
424
v2rayNjsonObject [ "type" ] = TextBoxCamouflageType . Text ; //设置伪装类型
424
-
425
- if ( TextBoxTransmission . Text . Contains ( "quic" ) == true )
425
+
426
+ if ( TextBoxTransmission . Text . Contains ( "kcp" ) == true )
427
+ {
428
+ v2rayNjsonObject [ "path" ] = TextBoxQuicKey . Text ; //设置mKCP Seed
429
+ }
430
+ else if ( TextBoxTransmission . Text . Contains ( "quic" ) == true )
426
431
{
427
432
v2rayNjsonObject [ "path" ] = TextBoxQuicKey . Text ; //设置quic密钥
428
433
v2rayNjsonObject [ "host" ] = "chacha20-poly1305" ;
0 commit comments