Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: move go-nat to internal package #3154

Open
wants to merge 73 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
73 commits
Select commit Hold shift + click to select a range
605978b
e3x: working on channel implementation
fd Aug 28, 2014
d827c54
Moving to github
fd Oct 27, 2014
83bf98d
Vendored dependencies
fd Oct 27, 2014
4dbe9af
WIP go vet and golint
fd Oct 30, 2014
c0902fb
Extracted from gogotelehash
fd Nov 5, 2014
50e7633
Fixed the example
fd Nov 5, 2014
dcaf501
Using github.com/jackpal/gateway to discover NAT-PMP/PCP gateways
fd May 8, 2015
bad65a4
Added go.mod file
fd May 25, 2018
66a3ad4
Fix test
cannium Sep 13, 2018
3fa58ce
Try to map external port the same as internal port
cannium Sep 13, 2018
329756a
gx import
Stebalien Sep 17, 2018
c30beee
Merge pull request #1 from cannium/port-mapping-update
Stebalien Sep 17, 2018
78a6e61
finish fd -> libp2p migration
Stebalien Sep 17, 2018
ab584c7
gx release 1.0.2
Stebalien Sep 17, 2018
2d37539
Bump github.com/jackpal/gateway from 1.0.4 to 1.0.5
dependabot-support Feb 12, 2019
e3ba0d8
Merge pull request #6 from fd/dependabot/go_modules/github.com/jackpa…
fd Feb 12, 2019
06c184b
Added method to generically discover IG Devices
ryanskidmore Mar 1, 2019
305b4cf
merge changes from upstream master (fd/go-nat).
raulk Mar 1, 2019
900ec35
add gomod support // tag v0.0.1.
raulk Mar 1, 2019
b1008fb
Merge pull request #3 from libp2p/gomod
raulk Mar 1, 2019
5172223
Merge pull request #7 from ryanskidmore/master
fd Mar 2, 2019
943d7b3
expose all discovered NATs
Stebalien Mar 6, 2019
c8594db
try to pick the best NAT when multiple NATs are discovered
Stebalien Mar 6, 2019
034a635
Merge remote-tracking branch 'fd/master'
Stebalien Mar 12, 2019
e426ef9
gx import go-ssdp
Stebalien Mar 12, 2019
5b3e757
Merge pull request #4 from libp2p/merge/upstream
Stebalien Mar 12, 2019
2c696e8
Merge pull request #5 from Stebalien/multi-nat
Stebalien Mar 12, 2019
ab32e61
gx release 1.0.3
Stebalien Mar 12, 2019
4a84cb4
farewell gx; thanks for serving us well.
raulk Apr 11, 2019
3f647da
fix detection of GenIG NATs
Stebalien Apr 12, 2019
523cb01
Revert "Try to map external port the same as internal port"
Stebalien Apr 12, 2019
c6e34f0
Merge pull request #7 from libp2p/fix/6
Stebalien Apr 12, 2019
d13fdef
Merge pull request #8 from libp2p/fix/random-port
Stebalien Apr 12, 2019
0938e5d
don't mask context
Stebalien May 3, 2019
02f8b1e
Merge pull request #10 from libp2p/fix/dont-mask-context
May 3, 2019
93d0ace
updated go.mod and go.sum to the latest version of github.com/koron/g…
iulianpascalau Nov 21, 2019
4b355d4
Merge pull request #12 from ElrondNetwork/master
vyzo Nov 21, 2019
199acda
fix: really obey the context
Stebalien Nov 22, 2019
5d5bd18
Merge pull request #13 from libp2p/fix/really-obey-context
Stebalien Nov 22, 2019
c437f7a
Bump github.com/jackpal/go-nat-pmp from 1.0.1 to 1.0.2
dependabot-preview[bot] Dec 6, 2019
4b6e89e
ci: bump to go 1.13
Stebalien Dec 6, 2019
6c4ff07
Merge branch 'ci/go-1.13'
Stebalien Dec 6, 2019
06a02ce
Merge pull request #14 from libp2p/dependabot/go_modules/github.com/j…
Stebalien Dec 7, 2019
d4146fb
feat: switch to go-netroute
Stebalien Mar 30, 2020
e0453a8
Merge pull request #19 from libp2p/feat/netroute
Stebalien Mar 31, 2020
c7e6c5b
sync: update CI config files (#20)
web3-bot Apr 22, 2021
18d1053
sync: update CI config files (#21)
web3-bot Jun 1, 2021
558869f
sync: update CI config files (#22)
web3-bot Aug 17, 2021
d0d64ea
pass a context to DiscoverGateway
marten-seemann Sep 19, 2021
73b4c1e
Merge pull request #23 from libp2p/context-discover-gateway
marten-seemann Sep 19, 2021
763460e
sync: update CI config files (#24)
web3-bot Dec 10, 2021
f775be1
sync: update CI config files (#25)
web3-bot Apr 4, 2022
afac959
sync: update CI config files (#26)
web3-bot Aug 23, 2022
5b1afd6
chore: Update .github/workflows/stale.yml [skip ci]
libp2p-mgmt-read-write[bot] Sep 19, 2022
dc44869
sync: update CI config files (#28)
web3-bot Apr 8, 2023
25823d7
update deps, use contexts on UPnP functions (#29)
marten-seemann Jun 1, 2023
2366bb0
chore: update deps (#31)
marten-seemann Jun 1, 2023
14ce74b
release v0.2.0 (#30)
marten-seemann Jun 1, 2023
29fad80
chore: Update .github/workflows/stale.yml [skip ci]
web-flow Jun 14, 2023
5cc65f9
chore: Update .github/workflows/stale.yml [skip ci]
web-flow Jun 28, 2023
da1dc6d
chore: delete templates [skip ci] (#32)
web3-bot Aug 13, 2023
90336fa
ci: uci/copy-templates (#33)
web3-bot Aug 14, 2023
0024259
chore: bump go.mod to Go 1.20 and run go fix (#34)
web3-bot Aug 14, 2023
07ada58
chore: Update .github/workflows/stale.yml [skip ci]
web-flow Jan 31, 2024
7083c1c
ci: uci/update-go (#36)
web3-bot Mar 14, 2024
01a3d99
ci: uci/copy-templates (#37)
web3-bot Mar 22, 2024
2fac909
chore: bump go.mod to Go 1.22 and run go fix (#38)
web3-bot Aug 26, 2024
d5b0d8f
Add 'p2p/net/nat/internal/nat/' from commit '2fac9092f3fc908fb38bc52f…
MarcoPolo Jan 24, 2025
f8bd11c
Make changes to internal nat library
MarcoPolo Jan 24, 2025
a740446
Merge branch 'master' into marco/bring-go-nat-home
MarcoPolo Jan 28, 2025
92a5d91
use buffered chan
MarcoPolo Jan 30, 2025
33a5f73
PR comments
MarcoPolo Jan 30, 2025
027bdd8
fix for loop condition
MarcoPolo Jan 31, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 3 additions & 4 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -15,19 +15,21 @@ require (
github.com/gorilla/websocket v1.5.3
github.com/hashicorp/golang-lru/arc/v2 v2.0.7
github.com/hashicorp/golang-lru/v2 v2.0.7
github.com/huin/goupnp v1.3.0
github.com/ipfs/go-cid v0.4.1
github.com/ipfs/go-datastore v0.6.0
github.com/ipfs/go-ds-badger v0.3.0
github.com/ipfs/go-ds-leveldb v0.5.0
github.com/ipfs/go-log/v2 v2.5.1
github.com/jackpal/go-nat-pmp v1.0.2
github.com/jbenet/go-temp-err-catcher v0.1.0
github.com/klauspost/compress v1.17.11
github.com/koron/go-ssdp v0.0.4
github.com/libp2p/go-buffer-pool v0.1.0
github.com/libp2p/go-flow-metrics v0.2.0
github.com/libp2p/go-libp2p-asn-util v0.4.1
github.com/libp2p/go-libp2p-testing v0.12.0
github.com/libp2p/go-msgio v0.3.0
github.com/libp2p/go-nat v0.2.0
github.com/libp2p/go-netroute v0.2.2
github.com/libp2p/go-reuseport v0.4.0
github.com/libp2p/go-yamux/v4 v4.0.1
Expand Down Expand Up @@ -90,11 +92,8 @@ require (
github.com/golang/snappy v0.0.0-20180518054509-2e65f85255db // indirect
github.com/google/pprof v0.0.0-20241210010833-40e02aabc2ad // indirect
github.com/google/uuid v1.6.0 // indirect
github.com/huin/goupnp v1.3.0 // indirect
github.com/jackpal/go-nat-pmp v1.0.2 // indirect
github.com/jbenet/goprocess v0.1.4 // indirect
github.com/klauspost/cpuid/v2 v2.2.9 // indirect
github.com/koron/go-ssdp v0.0.4 // indirect
github.com/mattn/go-isatty v0.0.20 // indirect
github.com/miekg/dns v1.1.62 // indirect
github.com/mikioh/tcpopt v0.0.0-20190314235656-172688c1accc // indirect
Expand Down
2 changes: 0 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -188,8 +188,6 @@ github.com/libp2p/go-libp2p-testing v0.12.0 h1:EPvBb4kKMWO29qP4mZGyhVzUyR25dvfUI
github.com/libp2p/go-libp2p-testing v0.12.0/go.mod h1:KcGDRXyN7sQCllucn1cOOS+Dmm7ujhfEyXQL5lvkcPg=
github.com/libp2p/go-msgio v0.3.0 h1:mf3Z8B1xcFN314sWX+2vOTShIE0Mmn2TXn3YCUQGNj0=
github.com/libp2p/go-msgio v0.3.0/go.mod h1:nyRM819GmVaF9LX3l03RMh10QdOroF++NBbxAb0mmDM=
github.com/libp2p/go-nat v0.2.0 h1:Tyz+bUFAYqGyJ/ppPPymMGbIgNRH+WqC5QrT5fKrrGk=
github.com/libp2p/go-nat v0.2.0/go.mod h1:3MJr+GRpRkyT65EpVPBstXLvOlAPzUVlG6Pwg9ohLJk=
github.com/libp2p/go-netroute v0.2.2 h1:Dejd8cQ47Qx2kRABg6lPwknU7+nBnFRpko45/fFPuZ8=
github.com/libp2p/go-netroute v0.2.2/go.mod h1:Rntq6jUAH0l9Gg17w5bFGhcC9a+vk4KNXs6s7IljKYE=
github.com/libp2p/go-reuseport v0.4.0 h1:nR5KU7hD0WxXCJbmw7r2rhRYruNRl2koHw8fQscQm2s=
Expand Down
18 changes: 0 additions & 18 deletions p2p/net/nat/internal/nat/.github/workflows/go-check.yml

This file was deleted.

20 changes: 0 additions & 20 deletions p2p/net/nat/internal/nat/.github/workflows/go-test.yml

This file was deleted.

19 changes: 0 additions & 19 deletions p2p/net/nat/internal/nat/.github/workflows/release-check.yml

This file was deleted.

17 changes: 0 additions & 17 deletions p2p/net/nat/internal/nat/.github/workflows/releaser.yml

This file was deleted.

13 changes: 0 additions & 13 deletions p2p/net/nat/internal/nat/.github/workflows/stale.yml

This file was deleted.

18 changes: 0 additions & 18 deletions p2p/net/nat/internal/nat/.github/workflows/tagpush.yml

This file was deleted.

10 changes: 1 addition & 9 deletions p2p/net/nat/internal/nat/README.md
Original file line number Diff line number Diff line change
@@ -1,9 +1 @@
# go-nat

[![GoDoc](https://godoc.org/github.com/libp2p/go-nat?status.svg)](https://godoc.org/github.com/libp2p/go-nat) [![status](https://sourcegraph.com/api/repos/github.com/libp2p/go-nat/.badges/status.png)](https://sourcegraph.com/github.com/libp2p/go-nat)

Forked from: [fd/go-nat](https://github.com/fd/go-nat).

---

The last gx published version of this module was: 1.0.3: QmdwkZHamNNrj7k3G29rnurmW3mFzsDhnyXppNcgYsiBVz
Originally forked from: [fd/go-nat](https://github.com/fd/go-nat).
67 changes: 0 additions & 67 deletions p2p/net/nat/internal/nat/_examples/nat-tester.go

This file was deleted.

17 changes: 0 additions & 17 deletions p2p/net/nat/internal/nat/gateway.go

This file was deleted.

17 changes: 0 additions & 17 deletions p2p/net/nat/internal/nat/go.mod

This file was deleted.

29 changes: 0 additions & 29 deletions p2p/net/nat/internal/nat/go.sum

This file was deleted.

Loading