3 Commits

Author SHA1 Message Date
Eric Zhang
6169d54012 (cargo-release) version 0.1.1 2022-04-06 03:10:28 -04:00
Eric Zhang
f00281f2dc Fix minor bug in server error handling 2022-04-06 03:10:02 -04:00
Eric Zhang
9a8fc8ec44 Fix CI badge and add GIF demo to README 2022-04-06 03:06:36 -04:00
4 changed files with 10 additions and 4 deletions

2
Cargo.lock generated
View File

@@ -75,7 +75,7 @@ checksum = "bef38d45163c2f1dde094a7dfd33ccf595c92905c8f8f4fdc18d06fb1037718a"
[[package]]
name = "bore-cli"
version = "0.1.0"
version = "0.1.1"
dependencies = [
"anyhow",
"clap",

View File

@@ -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."

View File

@@ -1,10 +1,12 @@
# bore
[![Build status](https://github.com/ekzhang/bore/workflows/ci/badge.svg)](https://github.com/ekzhang/bore/actions)
[![Build status](https://img.shields.io/github/workflow/status/ekzhang/bore/CI)](https://github.com/ekzhang/bore/actions)
[![Crates.io](https://img.shields.io/crates/v/bore-cli.svg)](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.**
![Video demo](https://i.imgur.com/vDeGsmx.gif)
```shell
# Installation (requires Rust)
cargo install bore-cli

View File

@@ -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(());
}
};