feat(net): add nat external ip crate (#605)

This commit is contained in:
Matthias Seitz
2022-12-25 17:22:31 +01:00
committed by GitHub
parent 73e12341c4
commit 3a07eb930f
4 changed files with 227 additions and 0 deletions

62
Cargo.lock generated
View File

@@ -173,6 +173,18 @@ dependencies = [
"critical-section",
]
[[package]]
name = "attohttpc"
version = "0.16.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "fdb8867f378f33f78a811a8eb9bf108ad99430d7aad43315dd9319c827ef6247"
dependencies = [
"http",
"log",
"url",
"wildmatch",
]
[[package]]
name = "atty"
version = "0.2.14"
@@ -1933,6 +1945,23 @@ version = "1.0.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "cb56e1aa765b4b4f3aadfab769793b7087bb03a4ea4920644a6d238e2df5b9ed"
[[package]]
name = "igd"
version = "0.12.0"
source = "git+https://github.com/stevefan1999-personal/rust-igd#c2d1f83eb1612a462962453cb0703bc93258b173"
dependencies = [
"attohttpc",
"bytes",
"futures",
"http",
"hyper",
"log",
"rand 0.8.5",
"tokio",
"url",
"xmltree",
]
[[package]]
name = "impl-codec"
version = "0.6.0"
@@ -3579,6 +3608,18 @@ dependencies = [
"reth-primitives",
]
[[package]]
name = "reth-net-nat"
version = "0.1.0"
dependencies = [
"igd",
"pin-project-lite",
"public-ip",
"reth-tracing",
"tokio",
"tracing",
]
[[package]]
name = "reth-network"
version = "0.1.0"
@@ -5251,6 +5292,12 @@ dependencies = [
"webpki",
]
[[package]]
name = "wildmatch"
version = "1.1.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "7f44b95f62d34113cf558c93511ac93027e03e9c29a60dd0fd70e6e025c7270a"
[[package]]
name = "winapi"
version = "0.3.9"
@@ -5418,6 +5465,21 @@ dependencies = [
"tap",
]
[[package]]
name = "xml-rs"
version = "0.8.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "d2d7d3948613f75c98fd9328cfdcc45acc4d360655289d0a7d4ec931392200a3"
[[package]]
name = "xmltree"
version = "0.10.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "d7d8a75eaf6557bb84a65ace8609883db44a29951042ada9b393151532e41fcb"
dependencies = [
"xml-rs",
]
[[package]]
name = "zeroize"
version = "1.5.7"