Complete standalone NAT forward configuration fixture
This commit is contained in:
1 parent
ddc163a2b7
commit
909005c1a4
1 file changed
+1
-1
@@ -1009,7 +1009,7 @@ static void test_static_forward_owners(void) {
|
||||
PASS();
|
||||
}
|
||||
TEST("static_forward_config_and_rollback");
|
||||
const char* text = "[nat]\nforward=udp:1234:10.0.0.2:40000:80\n";
|
||||
const char* text = "[nat]\ntun_ip=10.0.0.1\nport_start=10000\nport_end=20000\nforward=udp:1234:10.0.0.2:40000:80\n";
|
||||
struct utun_config* config = parse_config_from_buf(text, strlen(text), "nat-forward-valid");
|
||||
ASSERT(config && config->global.nat_forward_count == 1, "forward config parsed");
|
||||
struct eim_nat_ctx ctx;
|
||||
|
||||
Reference in new issue
Block a user