Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
p2p
go-nat
Commits
199acda7
Commit
199acda7
authored
Nov 22, 2019
by
Steven Allen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: really obey the context
The internal nat discovery logic doesn't properly propagate the context.
parent
4b355d43
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
+3
-0
nat.go
nat.go
+3
-0
No files found.
nat.go
View file @
199acda7
...
...
@@ -70,6 +70,9 @@ func DiscoverNATs(ctx context.Context) <-chan NAT {
if
!
ok
{
natpmp
=
nil
}
case
<-
ctx
.
Done
()
:
// timeout.
return
}
if
ok
{
select
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment