B. Blechschmidt
5301cf8d37
Add dual stack DNS lookup test
3 years ago
ssrlive
ff9c258fbd
re-formatting with max_width = 120
3 years ago
B. Blechschmidt
500f6ef21f
Add file descriptor support
3 years ago
B. Blechschmidt
fd48be5feb
Parameterize IP addresses in manual tests
3 years ago
B. Blechschmidt
70cea8e11f
Add manual tests for half open connections
3 years ago
B. Blechschmidt
6d9767db42
Add SOCKS4 support to CI
3 years ago
B. Blechschmidt
15703a4823
Use nix crate instead of interacting with libc directly, drop privileges
3 years ago
B. Blechschmidt
73f54c4a90
Adapt tests to use the setup functionality
3 years ago
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
3 years ago
ssrlive
d4410264e6
refine code
3 years ago
B. Blechschmidt
ce8ecbe44e
Fix CI
3 years ago
B. Blechschmidt
341bab5586
Implement SOCKS4
3 years ago
B. Blechschmidt
280073ebfe
Fix test framework
3 years ago
ssrlive
ad388f897a
refine TunToProxy struct
3 years ago
B. Blechschmidt
5295721461
Enable logging in tests
3 years ago
B. Blechschmidt
d13c7ff61b
Add DNS tests
3 years ago
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.
3 years ago
B. Blechschmidt
ca3aadcf1a
Use dotenvy instead of unmaintained dotenv and use it for the tests
3 years ago
B. Blechschmidt
3e33244e26
Do not leak secret
3 years ago
B. Blechschmidt
5cbb13247f
Run tests with GitHub actions
3 years ago
B. Blechschmidt
e509a81d67
Supply Proxy type to main_entry instead of individual args and adapt test cases
3 years ago
B. Blechschmidt
2f295c3fdc
Use Option type for credentials
This commit applys the diff by @ssrlive from
3223ca4e22 (commitcomment-105521241) .
3 years ago
B. Blechschmidt
ac60f39a88
Add Dockerfile and test script for tests
3 years ago
B. Blechschmidt
f6b4369fba
Run tests sequentially
Since we share a tun device and routes, the tests do not support being
executed in parallel.
3 years ago
B. Blechschmidt
1ac5428db5
Add tests
3 years ago