[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[tor-commits] [flashproxy/master] Add tests for IPv6 syntax in JavaScript parse_addr_spec.
commit d8e022718bf1b8493a701ed90bb238ea006e40af
Author: David Fifield <david@xxxxxxxxxxxxxxx>
Date: Sun Sep 23 10:24:14 2012 -0700
Add tests for IPv6 syntax in JavaScript parse_addr_spec.
---
flashproxy-test.js | 12 ++++++++++++
1 files changed, 12 insertions(+), 0 deletions(-)
diff --git a/flashproxy-test.js b/flashproxy-test.js
index 3db15e0..2dc185a 100755
--- a/flashproxy-test.js
+++ b/flashproxy-test.js
@@ -174,6 +174,18 @@ function test_parse_addr_spec()
expected: null },
{ spec: "3.3.3.3:65536",
expected: null },
+ { spec: "[1:2::a:f]:4444",
+ expected: { host: "1:2::a:f", port: 4444 } },
+ { spec: "[1:2::a:f]",
+ expected: null },
+ { spec: "[1:2::a:f]:0x1111",
+ expected: null },
+ { spec: "[1:2::a:f]:-4444",
+ expected: null },
+ { spec: "[1:2::a:f]:65536",
+ expected: null },
+ { spec: "[1:2::ffff:1.2.3.4]:4444",
+ expected: { host: "1:2::ffff:1.2.3.4", port: 4444 } },
];
announce("test_parse_addr_spec");
_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits