Smol fixes
This commit is contained in:
parent
954b33b2a6
commit
ce52897d30
2 changed files with 4 additions and 7 deletions
|
@ -141,7 +141,7 @@ class Database(Profiler):
|
|||
def pack_ip4address(address: str) -> Ip4Path:
|
||||
addr = 0
|
||||
for split in address.split('.'):
|
||||
addr = addr << 4 + int(split)
|
||||
addr = (addr << 8) + int(split)
|
||||
return (addr, 32)
|
||||
|
||||
@staticmethod
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue