Skip to content

Commit

Permalink
fix(uip): use Cloudflare's STUN server as default for better
Browse files Browse the repository at this point in the history
reachability
  • Loading branch information
dndx committed Apr 12, 2023
1 parent 2591791 commit 250ec5d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ NAT with the help of STUN servers.
Usage: uip [OPTIONS] [HOST:PORT]
Arguments:
[HOST:PORT] STUN server host and port. If PORT is omitted, it defaults to 3478 [default: stun.l.google.com:19302]
[HOST:PORT] STUN server host and port. If PORT is omitted, it defaults to 3478 [default: stun.cloudflare.com]
Options:
-4, --ipv4-only Do not use IPv6 addresses when connecting to STUN server
Expand All @@ -35,7 +35,7 @@ Options:
## Default port (UDP 3478):

```
$ uip stun.l.google.com
$ uip stun.cloudflare.com
203.0.113.1
```

Expand All @@ -55,12 +55,12 @@ To debug, run it with `RUST_LOG=debug uip`.

# Public STUN servers

* `stun.cloudflare.com`
* `stun.l.google.com`
* `stun1.l.google.com`
* `stun2.l.google.com`
* `stun3.l.google.com`
* `stun4.l.google.com`
* `stun.cloudflare.com`
* `stun.syncthing.net`
* `stun.xten.com`

Expand Down
2 changes: 1 addition & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ async fn main() -> Result<(), Error> {
.arg(
arg!([SERVER] "STUN server host and port. If PORT is omitted, it defaults to 3478")
.value_name("HOST:PORT")
.default_value("stun.l.google.com:19302"),
.default_value("stun.cloudflare.com"),
)
.arg(
Arg::new("ipv4_only")
Expand Down

0 comments on commit 250ec5d

Please sign in to comment.