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
0938e5d8
Commit
0938e5d8
authored
May 03, 2019
by
Steven Allen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
don't mask context
parent
d13fdefb
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 @
0938e5d8
...
@@ -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