Skip to content

Commit

Permalink
fix: STUN servers
Browse files Browse the repository at this point in the history
  • Loading branch information
HMBSbige committed Feb 15, 2025
1 parent 652a29b commit 65f15fd
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
7 changes: 5 additions & 2 deletions NatTypeTester.ViewModels/MainWindowViewModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,13 @@ public class MainWindowViewModel : ViewModelBase, IScreen

private static readonly FrozenSet<string> DefaultServers = new[]
{
@"stun.syncthing.net",
@"stun.hot-chilli.net",
@"stun.fitauto.ru",
@"stun.miwifi.com"
@"stun.internetcalls.com",
@"stun.miwifi.com",
@"stun.voip.aebc.com",
@"stun.voipbuster.com",
@"stun.voipstunt.com",
}.ToFrozenSet();

private SourceList<string> List { get; } = new();
Expand Down
2 changes: 1 addition & 1 deletion UnitTest/StunClien5389UDPTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ public class StunClien5389UDPTest
[TestMethod]
public async Task BindingTestSuccessAsync()
{
IPAddress ip = await _dnsClient.QueryAsync(@"stun.syncthing.net");
IPAddress ip = await _dnsClient.QueryAsync(@"stun.hot-chilli.net");
using StunClient5389UDP client = new(new IPEndPoint(ip, StunServer.DefaultPort), Any);

StunResult5389 response = await client.BindingTestAsync();
Expand Down
2 changes: 1 addition & 1 deletion UnitTest/StunClient3489Test.cs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ public class StunClient3489Test
{
private readonly IDnsClient _dnsClient = new DefaultDnsClient();

private const string Server = @"stun.syncthing.net";
private const string Server = @"stun.hot-chilli.net";
private const ushort Port = 3478;

private static readonly IPEndPoint Any = new(IPAddress.Any, 0);
Expand Down

0 comments on commit 65f15fd

Please sign in to comment.