diff options
author | Vincent Ricard <magic@magicninja.org> | 2021-04-16 18:05:46 +0200 |
---|---|---|
committer | Vincent Ricard <magic@magicninja.org> | 2021-04-16 18:05:46 +0200 |
commit | 3148b8553e7fd04a11b015fdaf89685bc35ee8d2 (patch) | |
tree | 0ca66620e31943eddae83b35afec6c77eec13770 | |
parent | 0d0cfd030347ab0711b3c0607a9ee07ffe7124cf (diff) | |
download | servo-3148b8553e7fd04a11b015fdaf89685bc35ee8d2.tar.gz servo-3148b8553e7fd04a11b015fdaf89685bc35ee8d2.zip |
Block port 10080
See https://github.com/whatwg/fetch/issues/1191
-rw-r--r-- | components/net/fetch/methods.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/components/net/fetch/methods.rs b/components/net/fetch/methods.rs index 178a951f448..29c6d14a7ea 100644 --- a/components/net/fetch/methods.rs +++ b/components/net/fetch/methods.rs @@ -948,12 +948,12 @@ fn is_network_scheme(scheme: &str) -> bool { /// <https://fetch.spec.whatwg.org/#bad-port> fn is_bad_port(port: u16) -> bool { - static BAD_PORTS: [u16; 77] = [ + static BAD_PORTS: [u16; 78] = [ 1, 7, 9, 11, 13, 15, 17, 19, 20, 21, 22, 23, 25, 37, 42, 43, 53, 69, 77, 79, 87, 95, 101, 102, 103, 104, 109, 110, 111, 113, 115, 117, 119, 123, 135, 137, 139, 143, 161, 179, 389, 427, 465, 512, 513, 514, 515, 526, 530, 531, 532, 540, 548, 554, 556, 563, 587, 601, 636, 993, 995, 1719, 1720, 1723, 2049, 3659, 4045, 5060, 5061, 6000, 6566, 6665, 6666, 6667, - 6668, 6669, 6697, + 6668, 6669, 6697, 10080, ]; BAD_PORTS.binary_search(&port).is_ok() |