mirror of
https://github.com/ekzhang/bore.git
synced 2025-12-17 04:17:50 +01:00
Compare commits
3 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
6169d54012 | ||
|
|
f00281f2dc | ||
|
|
9a8fc8ec44 |
2
Cargo.lock
generated
2
Cargo.lock
generated
@@ -75,7 +75,7 @@ checksum = "bef38d45163c2f1dde094a7dfd33ccf595c92905c8f8f4fdc18d06fb1037718a"
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "bore-cli"
|
name = "bore-cli"
|
||||||
version = "0.1.0"
|
version = "0.1.1"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"anyhow",
|
"anyhow",
|
||||||
"clap",
|
"clap",
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
[package]
|
[package]
|
||||||
name = "bore-cli"
|
name = "bore-cli"
|
||||||
version = "0.1.0"
|
version = "0.1.1"
|
||||||
authors = ["Eric Zhang <ekzhang1@gmail.com>"]
|
authors = ["Eric Zhang <ekzhang1@gmail.com>"]
|
||||||
license = "MIT"
|
license = "MIT"
|
||||||
description = "A modern, simple TCP tunnel in Rust that exposes local ports to a remote server, bypassing standard NAT connection firewalls."
|
description = "A modern, simple TCP tunnel in Rust that exposes local ports to a remote server, bypassing standard NAT connection firewalls."
|
||||||
|
|||||||
@@ -1,10 +1,12 @@
|
|||||||
# bore
|
# bore
|
||||||
|
|
||||||
[](https://github.com/ekzhang/bore/actions)
|
[](https://github.com/ekzhang/bore/actions)
|
||||||
[](https://crates.io/crates/bore-cli)
|
[](https://crates.io/crates/bore-cli)
|
||||||
|
|
||||||
A modern, simple TCP tunnel in Rust that exposes local ports to a remote server, bypassing standard NAT connection firewalls. **That's all it does: no more, and no less.**
|
A modern, simple TCP tunnel in Rust that exposes local ports to a remote server, bypassing standard NAT connection firewalls. **That's all it does: no more, and no less.**
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
```shell
|
```shell
|
||||||
# Installation (requires Rust)
|
# Installation (requires Rust)
|
||||||
cargo install bore-cli
|
cargo install bore-cli
|
||||||
|
|||||||
@@ -73,7 +73,11 @@ impl Server {
|
|||||||
Ok(listener) => listener,
|
Ok(listener) => listener,
|
||||||
Err(_) => {
|
Err(_) => {
|
||||||
warn!(?port, "could not bind to local port");
|
warn!(?port, "could not bind to local port");
|
||||||
send_json(&mut stream, "port already in use").await?;
|
send_json(
|
||||||
|
&mut stream,
|
||||||
|
ServerMessage::Error("port already in use".into()),
|
||||||
|
)
|
||||||
|
.await?;
|
||||||
return Ok(());
|
return Ok(());
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user