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 Jan 27, 2025
1 parent f394296 commit 31de0bf
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 31de0bf

Please sign in to comment.