Skip to content

Commit 3c079e6

Browse files
committed
refactor(nat): make changes to internal nat library
1 parent d5b0d8f commit 3c079e6

22 files changed

+252
-506
lines changed

go.mod

+3-4
Original file line numberDiff line numberDiff line change
@@ -15,19 +15,21 @@ require (
1515
github.com/gorilla/websocket v1.5.3
1616
github.com/hashicorp/golang-lru/arc/v2 v2.0.7
1717
github.com/hashicorp/golang-lru/v2 v2.0.7
18+
github.com/huin/goupnp v1.3.0
1819
github.com/ipfs/go-cid v0.4.1
1920
github.com/ipfs/go-datastore v0.6.0
2021
github.com/ipfs/go-ds-badger v0.3.0
2122
github.com/ipfs/go-ds-leveldb v0.5.0
2223
github.com/ipfs/go-log/v2 v2.5.1
24+
github.com/jackpal/go-nat-pmp v1.0.2
2325
github.com/jbenet/go-temp-err-catcher v0.1.0
2426
github.com/klauspost/compress v1.17.11
27+
github.com/koron/go-ssdp v0.0.4
2528
github.com/libp2p/go-buffer-pool v0.1.0
2629
github.com/libp2p/go-flow-metrics v0.2.0
2730
github.com/libp2p/go-libp2p-asn-util v0.4.1
2831
github.com/libp2p/go-libp2p-testing v0.12.0
2932
github.com/libp2p/go-msgio v0.3.0
30-
github.com/libp2p/go-nat v0.2.0
3133
github.com/libp2p/go-netroute v0.2.2
3234
github.com/libp2p/go-reuseport v0.4.0
3335
github.com/libp2p/go-yamux/v4 v4.0.1
@@ -90,11 +92,8 @@ require (
9092
github.com/golang/snappy v0.0.0-20180518054509-2e65f85255db // indirect
9193
github.com/google/pprof v0.0.0-20241210010833-40e02aabc2ad // indirect
9294
github.com/google/uuid v1.6.0 // indirect
93-
github.com/huin/goupnp v1.3.0 // indirect
94-
github.com/jackpal/go-nat-pmp v1.0.2 // indirect
9595
github.com/jbenet/goprocess v0.1.4 // indirect
9696
github.com/klauspost/cpuid/v2 v2.2.9 // indirect
97-
github.com/koron/go-ssdp v0.0.4 // indirect
9897
github.com/mattn/go-isatty v0.0.20 // indirect
9998
github.com/miekg/dns v1.1.62 // indirect
10099
github.com/mikioh/tcpopt v0.0.0-20190314235656-172688c1accc // indirect

go.sum

-2
Original file line numberDiff line numberDiff line change
@@ -188,8 +188,6 @@ github.com/libp2p/go-libp2p-testing v0.12.0 h1:EPvBb4kKMWO29qP4mZGyhVzUyR25dvfUI
188188
github.com/libp2p/go-libp2p-testing v0.12.0/go.mod h1:KcGDRXyN7sQCllucn1cOOS+Dmm7ujhfEyXQL5lvkcPg=
189189
github.com/libp2p/go-msgio v0.3.0 h1:mf3Z8B1xcFN314sWX+2vOTShIE0Mmn2TXn3YCUQGNj0=
190190
github.com/libp2p/go-msgio v0.3.0/go.mod h1:nyRM819GmVaF9LX3l03RMh10QdOroF++NBbxAb0mmDM=
191-
github.com/libp2p/go-nat v0.2.0 h1:Tyz+bUFAYqGyJ/ppPPymMGbIgNRH+WqC5QrT5fKrrGk=
192-
github.com/libp2p/go-nat v0.2.0/go.mod h1:3MJr+GRpRkyT65EpVPBstXLvOlAPzUVlG6Pwg9ohLJk=
193191
github.com/libp2p/go-netroute v0.2.2 h1:Dejd8cQ47Qx2kRABg6lPwknU7+nBnFRpko45/fFPuZ8=
194192
github.com/libp2p/go-netroute v0.2.2/go.mod h1:Rntq6jUAH0l9Gg17w5bFGhcC9a+vk4KNXs6s7IljKYE=
195193
github.com/libp2p/go-reuseport v0.4.0 h1:nR5KU7hD0WxXCJbmw7r2rhRYruNRl2koHw8fQscQm2s=

p2p/net/nat/internal/nat/.github/workflows/go-check.yml

-18
This file was deleted.

p2p/net/nat/internal/nat/.github/workflows/go-test.yml

-20
This file was deleted.

p2p/net/nat/internal/nat/.github/workflows/release-check.yml

-19
This file was deleted.

p2p/net/nat/internal/nat/.github/workflows/releaser.yml

-17
This file was deleted.

p2p/net/nat/internal/nat/.github/workflows/stale.yml

-13
This file was deleted.

p2p/net/nat/internal/nat/.github/workflows/tagpush.yml

-18
This file was deleted.

p2p/net/nat/internal/nat/README.md

+1-9
Original file line numberDiff line numberDiff line change
@@ -1,9 +1 @@
1-
# go-nat
2-
3-
[![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)
4-
5-
Forked from: [fd/go-nat](https://github.com/fd/go-nat).
6-
7-
---
8-
9-
The last gx published version of this module was: 1.0.3: QmdwkZHamNNrj7k3G29rnurmW3mFzsDhnyXppNcgYsiBVz
1+
Originally forked from: [fd/go-nat](https://github.com/fd/go-nat).

p2p/net/nat/internal/nat/_examples/nat-tester.go

-67
This file was deleted.

p2p/net/nat/internal/nat/gateway.go

-17
This file was deleted.

p2p/net/nat/internal/nat/go.mod

-17
This file was deleted.

p2p/net/nat/internal/nat/go.sum

-29
This file was deleted.

0 commit comments

Comments
 (0)