diff --git a/src/BD.WTTS.Client.Avalonia/UI/Styling/Controls/AppItem.axaml b/src/BD.WTTS.Client.Avalonia/UI/Styling/Controls/AppItem.axaml index 966f4e3b40b..a675ea842d5 100644 --- a/src/BD.WTTS.Client.Avalonia/UI/Styling/Controls/AppItem.axaml +++ b/src/BD.WTTS.Client.Avalonia/UI/Styling/Controls/AppItem.axaml @@ -65,7 +65,7 @@ @@ -181,7 +181,7 @@ Grid.Row="2" Grid.Column="1" Grid.ColumnSpan="2" - Margin="0,5" + Margin="0,5,12,5" VerticalAlignment="Top" Classes="CaptionTextBlockStyle" FontSize="12" diff --git a/src/BD.WTTS.Client.Plugins.Accelerator.ReverseProxy/Services.Implementation/Net/DnsDohAnalysisService.cs b/src/BD.WTTS.Client.Plugins.Accelerator.ReverseProxy/Services.Implementation/Net/DnsDohAnalysisService.cs index 0905311175f..262b7239e74 100644 --- a/src/BD.WTTS.Client.Plugins.Accelerator.ReverseProxy/Services.Implementation/Net/DnsDohAnalysisService.cs +++ b/src/BD.WTTS.Client.Plugins.Accelerator.ReverseProxy/Services.Implementation/Net/DnsDohAnalysisService.cs @@ -63,6 +63,12 @@ DnsHttpClient GetDnsHttpClient(Uri dohAddresUri) var client = new HttpClient(handler); client.BaseAddress = dohAddresUri; var dnsClient = new DnsHttpClient(client); + //暂未考虑释放问题 注意! + //foreach (var dc in dnsClients.Values) + //{ + // dc.Dispose(); + //} + //dnsClients.Clear(); dnsClients.TryAdd(dohAddresUri, dnsClient); return dnsClient; } diff --git a/src/BD.WTTS.Client.Plugins.Accelerator/Services.Implementation/NetworkTestService.cs b/src/BD.WTTS.Client.Plugins.Accelerator/Services.Implementation/NetworkTestService.cs index af027c1dc23..18130b1853b 100644 --- a/src/BD.WTTS.Client.Plugins.Accelerator/Services.Implementation/NetworkTestService.cs +++ b/src/BD.WTTS.Client.Plugins.Accelerator/Services.Implementation/NetworkTestService.cs @@ -375,7 +375,13 @@ private async ValueTask GetStunClient5389Async(TransportProtoco DnsQueryAnswerRecord.DnsRecordType dnsRecordType = DnsQueryAnswerRecord.DnsRecordType.A, CancellationToken cancellationToken = default) { - using HttpClient client = new HttpClient(); + var handler = new HttpClientHandler + { + UseCookies = false, + UseProxy = false, + Proxy = HttpNoProxy.Instance, + }; + using HttpClient client = new HttpClient(handler); string queryUrl = $"{dohServer}?name={testDomain}&type={dnsRecordType}"; diff --git a/src/BD.WTTS.Client.Plugins.Accelerator/UI/ViewModels/AcceleratorPageViewModel.cs b/src/BD.WTTS.Client.Plugins.Accelerator/UI/ViewModels/AcceleratorPageViewModel.cs index ec3ee3aeee1..938b825b7f7 100644 --- a/src/BD.WTTS.Client.Plugins.Accelerator/UI/ViewModels/AcceleratorPageViewModel.cs +++ b/src/BD.WTTS.Client.Plugins.Accelerator/UI/ViewModels/AcceleratorPageViewModel.cs @@ -95,7 +95,7 @@ public AcceleratorPageViewModel() DNSCheckCommand = ReactiveCommand.CreateFromTask(async () => { - var testDomain = DomainPendingTest == string.Empty ? "steamcommunity.com" : DomainPendingTest; + var testDomain = DomainPendingTest == string.Empty ? "store.steampowered.com" : DomainPendingTest; try { long delayMs; diff --git a/src/BD.WTTS.Client.Plugins.Accelerator/UI/ViewModels/AcceleratorPageViewModel.props.cs b/src/BD.WTTS.Client.Plugins.Accelerator/UI/ViewModels/AcceleratorPageViewModel.props.cs index 34f9e5f9fe6..7b3773002a3 100644 --- a/src/BD.WTTS.Client.Plugins.Accelerator/UI/ViewModels/AcceleratorPageViewModel.props.cs +++ b/src/BD.WTTS.Client.Plugins.Accelerator/UI/ViewModels/AcceleratorPageViewModel.props.cs @@ -105,7 +105,7 @@ public enum NatTypeSimple [Reactive] public string SelectedSTUNAddress { get; set; } - public List STUNAddress { get; } = + public string[] STUNAddress { get; } = [ "stun.syncthing.net", "stun.hot-chilli.net", diff --git a/src/BD.WTTS.Client.Plugins.Accelerator/UI/Views/Controls/NetworkCheck.axaml b/src/BD.WTTS.Client.Plugins.Accelerator/UI/Views/Controls/NetworkCheck.axaml index bc7906f0bf6..4bbac1ece4d 100644 --- a/src/BD.WTTS.Client.Plugins.Accelerator/UI/Views/Controls/NetworkCheck.axaml +++ b/src/BD.WTTS.Client.Plugins.Accelerator/UI/Views/Controls/NetworkCheck.axaml @@ -33,7 +33,7 @@ -