diff --git a/ProxySU/ResultClientInformation.xaml.cs b/ProxySU/ResultClientInformation.xaml.cs index 3107f3a..8195c29 100644 --- a/ProxySU/ResultClientInformation.xaml.cs +++ b/ProxySU/ResultClientInformation.xaml.cs @@ -604,31 +604,8 @@ namespace ProxySU string configSavePath = configDomainSavePath; RadioButtonMtgIpv4.IsChecked = true; - //MessageBox.Show(MainWindow.ReceiveConfigurationParameters[9]); - JObject jObjectJson = JObject.Parse(MainWindow.ReceiveConfigurationParameters[9]); - //MessageBox.Show(jObjectJson.ToString()); - if (jObjectJson["ipv4"]["tg_url"].ToString().Contains("nil") == false) - { - RadioButtonMtgIpv4.Visibility = Visibility.Visible; - TextBoxURLMtgTgIpv4.Text = jObjectJson["ipv4"]["tg_url"].ToString(); - ImageShareQRcodeMtgTgIpv4.Source = CreateQRCode(TextBoxURLMtgTgIpv4.Text, $"{configSavePath}\\QRIpv4Tg.bmp"); - using (StreamWriter sw = new StreamWriter($"{configSavePath}\\urlIpv4Tg.txt")) - { - sw.WriteLine(TextBoxURLMtgTgIpv4.Text); - } - TextBoxURLMtgTmeIpv4.Text = jObjectJson["ipv4"]["tme_url"].ToString(); - ImageShareQRcodeMtgTmeIpv4.Source = CreateQRCode(TextBoxURLMtgTmeIpv4.Text, $"{configSavePath}\\QRIpv4Tme.bmp"); - using (StreamWriter sw = new StreamWriter($"{configSavePath}\\urlIpv4Tme.txt")) - { - sw.WriteLine(TextBoxURLMtgTmeIpv4.Text); - } - RadioButtonMtgIpv4.IsChecked = true; - } - else - { - RadioButtonMtgIpv4.Visibility = Visibility.Collapsed; - } + JObject jObjectJson = JObject.Parse(MainWindow.ReceiveConfigurationParameters[9]); if (jObjectJson["ipv6"]["tg_url"].ToString().Contains("nil") == false) { @@ -652,7 +629,29 @@ namespace ProxySU { RadioButtonMtgIpv6.Visibility = Visibility.Collapsed; } - + + if (jObjectJson["ipv4"]["tg_url"].ToString().Contains("nil") == false) + { + RadioButtonMtgIpv4.Visibility = Visibility.Visible; + TextBoxURLMtgTgIpv4.Text = jObjectJson["ipv4"]["tg_url"].ToString(); + ImageShareQRcodeMtgTgIpv4.Source = CreateQRCode(TextBoxURLMtgTgIpv4.Text, $"{configSavePath}\\QRIpv4Tg.bmp"); + using (StreamWriter sw = new StreamWriter($"{configSavePath}\\urlIpv4Tg.txt")) + { + sw.WriteLine(TextBoxURLMtgTgIpv4.Text); + } + + TextBoxURLMtgTmeIpv4.Text = jObjectJson["ipv4"]["tme_url"].ToString(); + ImageShareQRcodeMtgTmeIpv4.Source = CreateQRCode(TextBoxURLMtgTmeIpv4.Text, $"{configSavePath}\\QRIpv4Tme.bmp"); + using (StreamWriter sw = new StreamWriter($"{configSavePath}\\urlIpv4Tme.txt")) + { + sw.WriteLine(TextBoxURLMtgTmeIpv4.Text); + } + RadioButtonMtgIpv4.IsChecked = true; + } + else + { + RadioButtonMtgIpv4.Visibility = Visibility.Collapsed; + } using (StreamWriter sw = new StreamWriter($"{configSavePath}\\mtproto_info.json")) { diff --git a/ProxySU/bin/Beta/Beta.zip b/ProxySU/bin/Beta/Beta.zip index e3d0195..ae7f9b9 100644 Binary files a/ProxySU/bin/Beta/Beta.zip and b/ProxySU/bin/Beta/Beta.zip differ