test(connlib): don't send arbitrary payloads to 53535 (#8428)

We reserve port 53535 on the Gateway's TUN IPs for a DNS server so we
must not send arbitrary UDP and TCP payloads to this port.
This commit is contained in:
Thomas Eizinger
2025-03-14 01:53:05 +11:00
committed by GitHub
parent e32eeec78d
commit 2f237ec82f
2 changed files with 2 additions and 1 deletions

View File

@@ -163,3 +163,4 @@ cc b5dc48d89cc4f0c61ed3b7c58338f8f9f06654a5948bad62869ea4bbecf270d8
cc 4b8aab1f09422751b66d7e46a968bb29fb9b11c8fff9bceb67cd5c8ddeab0a3d
cc c48e5d18ae2cc7533bbe1d0cd155a1ec7bcaf00e8d029b0345c241ec3371dcca
cc f2de44e6762e9a681d624467fd19ac9fc00f000dfc1c2a3bda05c905b01674c2
cc 36a7bb4eff285399b9c431675d4337712e7edf016a3a02b05cba5115c8bf8fe4

View File

@@ -276,7 +276,7 @@ where
fn non_dns_ports() -> impl Strategy<Value = u16> {
any::<u16>().prop_filter(
"avoid using port 53 for non-dns queries for simplicity",
|p| *p != 53,
|p| *p != 53 && *p != 53535,
)
}