Skip to content

Commit

Permalink
Allow 2nd character in address to be letter
Browse files Browse the repository at this point in the history
Fixes feross#45
  • Loading branch information
feross committed Jun 6, 2015
1 parent 8630001 commit e9dda2c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/spoof-mac.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ def main(args, root_or_admin):
target_mac = random_mac_address(args['--local'])
elif args['set']:
target_mac = args['<mac>']
if int(target_mac[1]) % 2:
if int(target_mac[1], 16) % 2:
print('Warning: The address you supplied is a multicast address and thus can not be used as a host address.')
elif args['reset']:
if address is None:
Expand Down

0 comments on commit e9dda2c

Please sign in to comment.