Commit Graph

18 Commits

Author SHA1 Message Date
Kian-Meng Ang 3ae14209a4
Fix typo, Maxmium -> Maximum (#81)
Found via `codespell -L crate`
2023-04-29 11:08:35 -04:00
Eric Zhang d630b47d38 Update dependencies 2023-04-27 21:55:44 -04:00
Eric Zhang 0860c6e018
Use random ports when port number is 0 (#79)
* Use random ports when port number is 0

* Add support for --max-port CLI option

* Fix typo

* Fix another typo

* Update README
2023-04-27 21:48:47 -04:00
Eric Zhang d3d5d434ad Update dependencies, including clap v4
Also fix Clippy lints for rustc 1.65 along the way.
2022-11-11 01:08:50 -05:00
calfzhou f1ed0b2ecb
Support reading remote server address from an environment variable (#45) (#46) 2022-11-11 00:52:58 -05:00
Prasanth 9cd43f458a
use framed codecs to avoid unbounded buffer (#33)
* using stream

* fix tests

* 💄

* 💄 fix review comments

* clean up buffered data

* 💄 fix review comments

* Refactor Delimited to be its own struct

* Add very_long_frame test to ensure behavior

Co-authored-by: Eric Zhang <ekzhang1@gmail.com>
2022-04-21 23:48:38 -04:00
B.O.S.S e61362915d
Fix Windows cargo test (#35) 2022-04-21 00:17:14 -04:00
Orhun Parmaksız cae08bb3c2
Support reading client/server secret from an environment variable (#18) 2022-04-14 14:40:52 -04:00
Basti Ortiz b045d8028e
Deps: minimize Tokio features (#25)
* Deps: use specific Tokio features

* Deps: run `cargo update`

* Refactor: move CLI-parsing outside Tokio runtime

* Fix: use `parse` over `try_parse`

Clap does special things behind the scenes before it exits.

* Refactor: use `tokio::main` macro for convenience
2022-04-14 14:39:46 -04:00
Antonio Mika 99fc4f7ddb
Add a configuration to allow forward to a different local host (#15)
* Add a configuration to allow forward to a different local host

* Minor documentation / formatting change

Co-authored-by: Eric Zhang <ekzhang1@gmail.com>
2022-04-11 23:45:07 -04:00
Eric Zhang 2d0dcf9889
Improve stability by exiting immediately on common errors (#2)
* Kill connections immediately on missing or close

* Add timeout to initial protocol messages

* Add low-level tracing for JSON messages

* Add timeout to initial TCP connections
2022-04-08 15:55:54 -04:00
Eric Zhang e84bd34bd9 Fix failing doc test 2022-04-08 04:18:21 -04:00
jtroo d5089cab2a
Add optional secret for authenticating clients (#1)
* Add optional secret for authenticating clients

* Add server challenge to authentication

* Refactor and simplify code, reduce dependencies

* Update README to describe HMAC authentication

Co-authored-by: Eric Zhang <ekzhang1@gmail.com>
2022-04-08 04:13:31 -04:00
Eric Zhang f00281f2dc Fix minor bug in server error handling 2022-04-06 03:10:02 -04:00
Eric Zhang 599926d19c Implement the rest of the bore client 2022-04-06 02:08:01 -04:00
Eric Zhang fe1c8ad0e9 Implement shared protocol and server 2022-04-06 01:08:35 -04:00
Eric Zhang 702c67c4af Add more structure and change intended usage 2022-04-03 21:34:47 -04:00
Eric Zhang 3f4cdef248 Initial commit 2022-04-03 19:58:51 -04:00