Commit graph

32 commits

Author SHA1 Message Date
ssrlive
a8ea145707 testing script 2023-11-09 23:23:54 +08:00
ssrlive
0e654eb4bd
Ctrlc issues (#75) 2023-11-06 20:03:40 +08:00
ssrlive
fe85ecd15c iperf3 testing script 2023-11-04 12:28:38 +08:00
B. Blechschmidt
286ce0ca6d Add very basic and dirty iperf test 2023-11-03 20:28:31 +01:00
B. Blechschmidt
e08a0f683d Allow multiple bypass IP addresses/CIDRs in routing setup
See issue #73.
2023-10-29 23:48:38 +01:00
ssrlive
bbb8d3b244
port to windows or macos (#61) 2023-08-31 14:31:02 +08:00
B. Blechschmidt
5301cf8d37 Add dual stack DNS lookup test 2023-08-20 18:20:47 +02:00
ssrlive
ff9c258fbd re-formatting with max_width = 120 2023-08-08 23:45:16 +08:00
B. Blechschmidt
500f6ef21f Add file descriptor support 2023-04-10 23:24:53 +02:00
B. Blechschmidt
fd48be5feb Parameterize IP addresses in manual tests 2023-04-10 11:05:06 +02:00
B. Blechschmidt
70cea8e11f Add manual tests for half open connections 2023-04-10 10:57:41 +02:00
B. Blechschmidt
6d9767db42 Add SOCKS4 support to CI 2023-04-03 00:39:13 +02:00
B. Blechschmidt
15703a4823 Use nix crate instead of interacting with libc directly, drop privileges 2023-04-01 21:18:01 +02:00
B. Blechschmidt
73f54c4a90 Adapt tests to use the setup functionality 2023-03-30 01:50:30 +02:00
B. Blechschmidt
20dc6f78f1 Refactor
This commit moves some essential types to lib and fixes one clippy
warning: https://rust-lang.github.io/rust-clippy/master/index.html#enum_variant_names
2023-03-25 13:07:49 +01:00
ssrlive
d4410264e6 refine code 2023-03-25 16:44:33 +08:00
B. Blechschmidt
ce8ecbe44e Fix CI 2023-03-25 02:01:17 +01:00
B. Blechschmidt
a5aac8c0a4 Merge SOCKS4 support
The SOCKS4 tests in the CI pipeline will currently fail, as no SOCKS4
test server for automated testing has been set up yet.
2023-03-25 01:53:30 +01:00
B. Blechschmidt
341bab5586 Implement SOCKS4 2023-03-25 01:39:46 +01:00
B. Blechschmidt
280073ebfe Fix test framework 2023-03-24 18:04:27 +01:00
ssrlive
ad388f897a refine TunToProxy struct 2023-03-24 09:27:31 +08:00
B. Blechschmidt
5295721461 Enable logging in tests 2023-03-23 18:11:08 +01:00
B. Blechschmidt
d13c7ff61b Add DNS tests 2023-03-23 14:51:56 +01:00
B. Blechschmidt
c9297124e1 Implement first, unfinished version of DNS support and fix incomplete TCP stream bug
This commit does two things:
First, it implements a first, unfinished version of the virtual DNS
functionality. This feature is incomplete and has known bugs. Since it
needs to be enabled manually, this is not a huge issue so far.
Second, the commit fixes a bug where TCP streams where not properly
relayed, causing TCP connections to stall.
2023-03-23 13:03:01 +01:00
B. Blechschmidt
ca3aadcf1a Use dotenvy instead of unmaintained dotenv and use it for the tests 2023-03-22 18:06:51 +01:00
B. Blechschmidt
3e33244e26 Do not leak secret 2023-03-22 16:30:30 +01:00
B. Blechschmidt
5cbb13247f Run tests with GitHub actions 2023-03-22 15:39:08 +01:00
B. Blechschmidt
e509a81d67 Supply Proxy type to main_entry instead of individual args and adapt test cases 2023-03-22 13:18:07 +01:00
B. Blechschmidt
2f295c3fdc Use Option type for credentials
This commit applys the diff by @ssrlive from
3223ca4e22 (commitcomment-105521241).
2023-03-22 12:18:41 +01:00
B. Blechschmidt
ac60f39a88 Add Dockerfile and test script for tests 2023-03-21 23:15:16 +01:00
B. Blechschmidt
f6b4369fba Run tests sequentially
Since we share a tun device and routes, the tests do not support being
executed in parallel.
2023-03-21 00:06:15 +01:00
B. Blechschmidt
1ac5428db5 Add tests 2023-03-20 23:52:38 +01:00