main
_ 2021-10-10 23:53:21 +00:00
parent 1226016150
commit 6c5dff4685
1 changed files with 3 additions and 0 deletions

View File

@ -389,6 +389,9 @@ mod test {
for (input, expected) in vec! [ for (input, expected) in vec! [
(("127.0.0.1:4000", "bogus_server", 22), 51168), (("127.0.0.1:4000", "bogus_server", 22), 51168),
// The relay address is explicitly excluded from the eph port
// computation in case I want to support connecting to a server
// across multiple relays
(("127.0.0.1:30380", "bogus_server", 22), 51168), (("127.0.0.1:30380", "bogus_server", 22), 51168),
(("127.0.0.1:4000", "real_server", 22), 53873), (("127.0.0.1:4000", "real_server", 22), 53873),
(("127.0.0.1:4000", "bogus_server", 5900), 53844), (("127.0.0.1:4000", "bogus_server", 5900), 53844),