mirror of https://github.com/MatrixTM/MHDDoS.git
Fix regex compile issue "invalid escape sequence"
This commit is contained in:
parent
da70378297
commit
f8e938481d
4
start.py
4
start.py
|
|
@ -165,8 +165,8 @@ BYTES_SEND = Counter()
|
|||
|
||||
|
||||
class Tools:
|
||||
IP = compile("(?:\\d{1,3}\\.){3}\\d{1,3}")
|
||||
protocolRex = compile('"protocol":(\\d+)')
|
||||
IP = compile(r"(?:\d{1,3}\.){3}\d{1,3}")
|
||||
protocolRex = compile(r'"protocol":(\d+)')
|
||||
|
||||
@staticmethod
|
||||
def humanbytes(i: int, binary: bool = False, precision: int = 2):
|
||||
|
|
|
|||
Loading…
Reference in New Issue