mirror of
https://github.com/ekzhang/bore.git
synced 2025-12-16 11:57:52 +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]]
|
||||
name = "bore-cli"
|
||||
version = "0.1.0"
|
||||
version = "0.1.1"
|
||||
dependencies = [
|
||||
"anyhow",
|
||||
"clap",
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
[package]
|
||||
name = "bore-cli"
|
||||
version = "0.1.0"
|
||||
version = "0.1.1"
|
||||
authors = ["Eric Zhang <ekzhang1@gmail.com>"]
|
||||
license = "MIT"
|
||||
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
|
||||
|
||||
[](https://github.com/ekzhang/bore/actions)
|
||||
[](https://github.com/ekzhang/bore/actions)
|
||||
[](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.**
|
||||
|
||||

|
||||
|
||||
```shell
|
||||
# Installation (requires Rust)
|
||||
cargo install bore-cli
|
||||
|
||||
@@ -73,7 +73,11 @@ impl Server {
|
||||
Ok(listener) => listener,
|
||||
Err(_) => {
|
||||
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(());
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user