Skip to content

Commit

Permalink
Increase NAT discovery timeout to 5000ms (Ryubing#589)
Browse files Browse the repository at this point in the history
1000ms was too fast on some slower networks. It would lead to an early
cancellation before device could be found.
  • Loading branch information
kruumy authored and SomeoneIsWorking committed Feb 1, 2025
1 parent c55860a commit 8087a44
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ public void Configure(ProxyConfig config)
public async Task<ushort> NatPunch()
{
NatDiscoverer discoverer = new();
CancellationTokenSource cts = new(1000);
CancellationTokenSource cts = new(5000);

NatDevice device;

Expand Down

0 comments on commit 8087a44

Please sign in to comment.