commit
d95e5ce680
1 changed files with 1 additions and 1 deletions
|
@ -157,7 +157,7 @@ def parse_header(data):
|
|||
if len(data) >= 2 + addrlen:
|
||||
dest_addr = data[2:2 + addrlen]
|
||||
dest_port = struct.unpack('>H', data[2 + addrlen:4 +
|
||||
addrlen])[0]
|
||||
addrlen])[0]
|
||||
header_length = 4 + addrlen
|
||||
else:
|
||||
logging.warn('header is too short')
|
||||
|
|
Loading…
Reference in a new issue