https://github.com/swarm-cloud/swiftnattypedetector
https://github.com/swarm-cloud/swiftnattypedetector
Last synced: 10 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/swarm-cloud/swiftnattypedetector
- Owner: swarm-cloud
- Created: 2023-07-08T08:49:19.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2023-07-11T13:48:45.000Z (about 3 years ago)
- Last Synced: 2025-06-15T01:39:31.272Z (about 1 year ago)
- Language: Swift
- Size: 34.2 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## Swift implementation of NAT type detection
Inspired by https://github.com/HMBSbige/NatTypeTester
Issue and pull request are welcomed
### Swift Package Manager
The [Swift Package Manager](https://swift.org/package-manager/) is a tool for automating the distribution of Swift code and is integrated into the `swift` compiler.
Once you have your Swift package set up, adding SwiftNATTypeDetector as a dependency is as easy as adding it to the `dependencies` value of your `Package.swift`.
```swift
dependencies: [
.package(url: "https://github.com/swarm-cloud/SwiftNATTypeDetector.git", .upToNextMajor(from: "0.0.1"))
]
```
## NAT类型探测的Swift实现
参照了c#版的实现:https://github.com/HMBSbige/NatTypeTester
欢迎测试效果并反馈issue