mirror of https://github.com/bitcoin/bitcoin
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, and 27.99.
This commit is contained in:
parent
d6069cb8d6
commit
e758cc96b2
|
@ -41,11 +41,12 @@ 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|99).0|"
|
||||
r")")
|
||||
|
||||
def parseline(line: str) -> Union[dict, None]:
|
||||
|
|
Loading…
Reference in New Issue