Commit Graph

56 Commits

Author SHA1 Message Date
Mia
4c9ccd29ca Handle Typescript 4.5.2 2021-11-18 19:11:21 -06:00
Mia
88ef7fdf1f
Support marksharing ranges (#8498) 2021-10-24 12:44:46 -07:00
Mia
7811795344
Handle new TypeScript version (#8449)
Co-authored-by: Guangcong Luo <guangcongluo@gmail.com>
2021-08-30 20:11:44 -07:00
Annika
6ed55b6d1f
IPTools: Add sanity checks (#8331) 2021-07-09 19:59:45 -07:00
Guangcong Luo
d555f6fe0d Fix max-len for long regexes
We use eslint-disable for max-len in a lot of places where we don't
actually need it. This fixes that.
2021-05-23 20:48:31 -07:00
Guangcong Luo
d8f492d209 Fix bugs in IP and IP range support
IPTools has gotten a bit buggy since the last time I looked at it. This
fixes `IPTools.ipRegex` to actually validate IPs, and adds a new
`IPTools.isValidRange` validation function.

`/ipsearch` now also supports all three IP range formats, thanks to
being refactored to use `IPTools.checker`.

Fixes #8330
2021-05-23 20:48:31 -07:00
Guangcong Luo
486f292904
Refactor everything to use Utils.sortBy (#8220)
A few uses of `array.sort()` have been left alone:

- sorting in `data/` because they aren't supposed to import anything

- `set-importer` because I still have no clue what that's for and what
  dependencies it is/isn't allowed to have

- `sort()` with no arguments used as a lexical sort (at which point
  `sortBy` offers no benefits)

All other cases have been replaced with `Utils.sortBy`, which should
be a massive increase in readability.

Sort orders should be much more readable now, without needing to puzzle
through sign issues. The order is always low-to-high, A-to-Z,
true-to-false.
2021-04-23 22:41:00 -07:00
Mia
e548579e9b
IPTools: Automatically add Tor IPs to the proxy list (#8188) 2021-04-08 11:34:09 -07:00
Annika
c2e97aaaed
Use optional chaining in more places (#8063) 2021-02-22 11:42:05 -08:00
Mia
76c10841ea
Lib: Add an index file for all exports (#7972) 2021-01-31 18:00:19 -08:00
Mia
c12108fa72
Fix spinlock in /nomarkshared view (#7821) 2020-12-18 13:16:02 -08:00
Annika
34cab27a74
Properly type Promises (#7712) 2020-11-19 23:19:42 -08:00
Annika
1f239664c7
IPTools: Check proxy IPs before other host types (#7414) 2020-09-24 09:30:47 -07:00
Annika
bece58ee93
Fixes for /unrangelock (#7266) 2020-08-26 22:48:00 -07:00
Annika
05065dbdb8
IPTools: Support wildcards in string ranges (#7223) 2020-08-18 13:37:58 -07:00
Kris Johnson
7fc3cd516e
Add /nomarkshared (#7201) 2020-08-12 16:21:00 -07:00
Annika
7df8ad12a9
Hosts: Fix bug with /ipranges widen (#7202) 2020-08-12 10:03:08 -07:00
Annika
ce8a1dd975
IPTools: Remove '-nohost' suffix and make minor improvements (#7108) 2020-08-07 14:47:18 -07:00
Annika
cd85cd7a9d
Hosts & IPTools: Refactor to remove hardcoded ranges (#7078) 2020-07-29 23:04:50 -07:00
Annika
e0c18e8e0b
Refactor IPTools and add a host management chat plugin (#7061) 2020-07-26 12:41:27 -07:00
Kirk Scheibelhut
25eca28c30 Extract singleIPOpenProxies into a Set 2020-07-24 21:03:53 -07:00
Lusamine
41ece9d418
Update datacenters & ip-tools (#6903) 2020-06-22 07:18:40 -07:00
asgdf
2a570291e1
Remove incorrect host classification (#6893)
A large portion of the IPs with that hostname are static broadband connections.
2020-06-21 19:22:22 -04:00
Marty-D
f0753192a4 Update datacenters 2020-06-08 11:59:42 -04:00
Lusamine
8d910a2ad4
Update datacenters & IP-tools (#6708) 2020-05-16 18:28:06 -07:00
Lusamine
b8885dd360
Update datacenters & ip-tools (#6619) 2020-04-25 17:00:21 -07:00
asgdf
31cb98bebe
Improve hosttype detection for special case (#6577) 2020-04-14 15:26:16 -07:00
asgdf
85b621f0f2
Update datacenters (#6547) 2020-04-09 11:55:25 -07:00
Lusamine
2283b28afc
Update datacenters & ip-tools (#6459) 2020-03-14 11:27:26 -04:00
Guangcong Luo
b21c9047e2
Migrate to typescript-eslint (#6342) 2020-03-05 08:33:06 -08:00
Lusamine
7e8f5ddc36
Update datacenters & ip-tools (#6406) 2020-03-01 03:27:04 -08:00
Lusamine
39545c581d
Update datacenters and IP-tools (#6355) 2020-02-09 16:11:33 -08:00
Lusamine
9e699ff8d7
Update datacenters & ip-tools (#6300) 2020-02-01 22:01:11 -08:00
Lusamine
eed30c3759 Update datacenters (#6294)
* Update datacenters and ip-tools

* Clean up DET/Host1Plus/Heficed ranges
2020-01-18 22:26:42 -07:00
asgdf
b352ab8e3e Update datacenters (#6202) 2019-12-22 05:21:28 +09:00
Lusamine
68c0634a5b Update datacenters & ip-tools (#5937) 2019-11-07 17:41:10 +10:30
Lusamine
a1fe7d3fc9 Update datacenters and IP-tools (#5915) 2019-10-27 16:25:24 -04:00
Waleed Hassan
28e870c4fb Server: Use readonly where appropriate (#5902) 2019-10-21 16:12:32 +10:30
Lusamine
6785111e32 Update datacenters & ip-tools (#5901) 2019-10-20 20:42:45 +10:30
Lusamine
4497dce723 Update datacenters & IP-tools (#5880) 2019-10-13 19:28:35 -04:00
Lusamine
3c8ced43af Update datacenters and IP-tools (#5849) 2019-10-05 14:53:21 +10:00
Guangcong Luo
cc42db1b5c Improve workaround for TypeScript Promise.all bug 2019-10-03 23:02:36 +10:00
HoeenHero
b055697237 Fix more typing in preperation for TS 3.7.0 2019-10-01 21:44:09 -04:00
Lusamine
bab655fbf6 Update datacenters and IP-tools (#5823) 2019-09-27 17:00:52 +09:30
Lusamine
ba1a7cdee7 Update datacenters and ip-tools (#5801) 2019-09-21 12:06:17 +09:30
Marty-D
6d48520345 IPTools: Update proxies 2019-09-15 15:15:54 -04:00
whales
52a5312550 Fix bug in IPTools#testConnection (#5763) 2019-09-07 02:03:09 -05:00
Lusamine
b69a7800d4 Update IPTools and datacenters (#5762) 2019-09-06 20:33:51 -04:00
Ben Davies
166efd79d9 Fix typo in IPTools 2019-08-28 19:20:01 -03:00
Marty-D
3ab1db925c
IPTools: Update proxy list 2019-08-04 11:42:05 -04:00