@@ -292,7 +292,7 @@ public ResultClientInformation()
292
292
TextBlockTrojanGoWebSocketPath . Visibility = Visibility . Hidden ;
293
293
TextBlockTrojanGoCaption . Visibility = Visibility . Hidden ;
294
294
295
- TextBlockQrURLexplain . Text = "可用于ShadowRocket (ios)、igniter(Android)、Trojan-QT5 (windows) 扫码和导入url" ;
295
+ TextBlockQrURLexplain . Text = "可用于ShadowRocket (ios)、igniter(Android)、Trojan-QT5 (windows) 扫码和导入url。注意:有的客户端可能不支持WebSocket模式。 " ;
296
296
297
297
//主机地址
298
298
TextBoxTrojanGoServerHost . Text = MainWindow . ReceiveConfigurationParameters [ 4 ] ;
@@ -319,15 +319,15 @@ public ResultClientInformation()
319
319
GroupBoxTrojanClient . Visibility = Visibility . Visible ;
320
320
GroupBoxNaiveProxyClient . Visibility = Visibility . Collapsed ;
321
321
322
+ TextBlockQrURLexplain . Text = "可用于ShadowRocket (ios)、igniter(Android)、Trojan-QT5 (windows) 扫码和导入url" ;
323
+
322
324
//主机地址
323
325
TextBoxTrojanServerHost . Text = MainWindow . ReceiveConfigurationParameters [ 4 ] ;
324
326
//主机端口
325
327
TextBoxTrojanServerPort . Text = "443" ;
326
328
//密钥(uuid)
327
329
TextBoxTrojanServerPassword . Text = MainWindow . ReceiveConfigurationParameters [ 2 ] ;
328
330
329
- TextBlockQrURLexplain . Text = "可用于ShadowRocket (ios)、igniter(Android)、Trojan-QT5 (windows) 扫码和导入url" ;
330
-
331
331
CheckDir ( "trojan_config" ) ;
332
332
GenerateTrojanShareQRcodeAndBase64Url ( ) ;
333
333
}
@@ -502,7 +502,7 @@ private void GenerateV2rayShareQRcodeAndBase64Url()
502
502
private void GenerateTrojanGoShareQRcodeAndBase64Url ( )
503
503
{
504
504
505
- string saveFileFolderFirst = TextBoxTrojanServerHost . Text ;
505
+ string saveFileFolderFirst = TextBoxTrojanGoServerHost . Text ;
506
506
int num = 1 ;
507
507
saveFileFolder = saveFileFolderFirst ;
508
508
CheckDir ( "trojan-go_config" ) ;
@@ -512,7 +512,7 @@ private void GenerateTrojanGoShareQRcodeAndBase64Url()
512
512
num ++ ;
513
513
}
514
514
CheckDir ( @"trojan-go_config\" + saveFileFolder ) ;
515
- string trojanUrl = $ "trojan://{ TextBoxTrojanServerPassword . Text } @{ TextBoxTrojanServerHost . Text } :{ TextBoxTrojanServerPort . Text } ?allowinsecure=0&tfo=0&sni=&mux=0&ws=0&group=#{ TextBoxTrojanServerHost . Text } ";
515
+ string trojanUrl = $ "trojan://{ TextBoxTrojanGoServerPassword . Text } @{ TextBoxTrojanGoServerHost . Text } :{ TextBoxTrojanGoServerPort . Text } ?allowinsecure=0&tfo=0&sni=&mux=0&ws=0&group=#{ TextBoxTrojanGoServerHost . Text } ";
516
516
//MessageBox.Show(v2rayNjsonObject.ToString());
517
517
//string trojanUrl = "trojan://" + ToBase64Encode(v2rayNjsonObject.ToString());
518
518
TextBoxURL . Text = trojanUrl ;
@@ -549,9 +549,9 @@ private void GenerateTrojanGoShareQRcodeAndBase64Url()
549
549
sw . WriteLine ( "此文件为Trojan-QT5 (windows)、igniter(Android)、Shadowrocket(ios)复制粘贴导入节点的网址(Trojan-Go的WebSocket模式暂不支持)" ) ;
550
550
sw . WriteLine ( "-----------------------------------------\n " ) ;
551
551
sw . WriteLine ( "服务器通用连接配置参数" ) ;
552
- sw . WriteLine ( $ "地址(address):{ TextBoxTrojanServerHost . Text } ") ;
553
- sw . WriteLine ( $ "端口(Port):{ TextBoxTrojanServerPort . Text } ") ;
554
- sw . WriteLine ( $ "密钥:{ TextBoxTrojanServerPassword . Text } ") ;
552
+ sw . WriteLine ( $ "地址(address):{ TextBoxTrojanGoServerHost . Text } ") ;
553
+ sw . WriteLine ( $ "端口(Port):{ TextBoxTrojanGoServerPort . Text } ") ;
554
+ sw . WriteLine ( $ "密钥:{ TextBoxTrojanGoServerPassword . Text } ") ;
555
555
sw . WriteLine ( $ "WebSocket路径:{ TextBoxTrojanGoWSPath . Text } ") ;
556
556
557
557
}
0 commit comments