mirror of
https://github.com/bitcoin/bitcoin.git
synced 2024-11-19 09:53:47 +01:00
makeseeds: Update user agent regex
Update the user agent regex to match all 3 digits of the version number, not just the first 2 digits. Also updates it to include 24.2, 25.2, 26.1, 27.0, 27.1, 27.99, 28.0 and 28.99.
This commit is contained in:
parent
0a379a129b
commit
d5a8c4c4bd
@ -41,11 +41,13 @@ PATTERN_AGENT = re.compile(
|
||||
r"0.19.(0|1|2|99)|"
|
||||
r"0.20.(0|1|2|99)|"
|
||||
r"0.21.(0|1|2|99)|"
|
||||
r"22.(0|1|99)|"
|
||||
r"23.(0|1|99)|"
|
||||
r"24.(0|1|99)|"
|
||||
r"25.(0|1|99)|"
|
||||
r"26.(0|99)|"
|
||||
r"22.(0|1|99).0|"
|
||||
r"23.(0|1|99).0|"
|
||||
r"24.(0|1|2|99).(0|1)|"
|
||||
r"25.(0|1|2|99).0|"
|
||||
r"26.(0|1|99).0|"
|
||||
r"27.(0|1|99).0|"
|
||||
r"28.(0|99).0|"
|
||||
r")")
|
||||
|
||||
def parseline(line: str) -> Union[dict, None]:
|
||||
|
Loading…
Reference in New Issue
Block a user