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
02f8b1ee
Unverified
Commit
02f8b1ee
authored
May 03, 2019
by
Steven Allen
Committed by
GitHub
May 03, 2019
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #10 from libp2p/fix/dont-mask-context
don't mask context
parents
d13fdefb
0938e5d8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
3 deletions
+0
-3
nat.go
nat.go
+0
-3
No files found.
nat.go
View file @
02f8b1ee
...
@@ -44,9 +44,6 @@ func DiscoverNATs(ctx context.Context) <-chan NAT {
...
@@ -44,9 +44,6 @@ func DiscoverNATs(ctx context.Context) <-chan NAT {
go
func
()
{
go
func
()
{
defer
close
(
nats
)
defer
close
(
nats
)
ctx
,
cancel
:=
context
.
WithCancel
(
context
.
Background
())
defer
cancel
()
upnpIg1
:=
discoverUPNP_IG1
(
ctx
)
upnpIg1
:=
discoverUPNP_IG1
(
ctx
)
upnpIg2
:=
discoverUPNP_IG2
(
ctx
)
upnpIg2
:=
discoverUPNP_IG2
(
ctx
)
natpmp
:=
discoverNATPMP
(
ctx
)
natpmp
:=
discoverNATPMP
(
ctx
)
...
...
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