Commit graph

10 commits

Author SHA1 Message Date
Ben Draut
32eee7d94b Fix bug in target parsing
When a MAC address with uppercase letters was provided, parsing would
return an error because the parsing logic would only attempt to remove
normalized versions (all lowercase) from the target list. This would
leave the address with uppercase letters in the target list, which it
would then try to interpet as an Alias. This fixes the bug by using
the original address form when removing it from the target list.
2021-03-09 20:30:48 -07:00
Stefan Tatschner
6406885928 Update broken tests 2019-06-30 22:22:36 +02:00
eenblam
7cca7b9d93 Add tests for ParseTargets
Still need tests with actual alias map
2018-08-31 15:01:46 -07:00
evilsocket
5041267be9
fixed net.FindGateway if there's a VPN interface active 2018-05-03 13:03:52 +02:00
Kent Gruber
7bff3bba79 add test for FindInterface in network package 2018-05-01 12:41:21 -04:00
Kent Gruber
dcd5001357 add basic matchByAddress test
checks both mac address and ip address cases
2018-05-01 11:01:31 -04:00
Kent Gruber
36fb416952 add basic findInterfaceByName test 2018-05-01 10:53:09 -04:00
Kent Gruber
3c920397b9 add basic buildEndpointFromInterface test 2018-05-01 10:07:13 -04:00
Kent Gruber
b188354c33 add basic ParseTargets test
Note: needs refactoring to include an actual alias map example. I was
unable to get this to work for the time being, but this test adds at
least some coverage.
2018-05-01 10:05:52 -04:00
Kent Gruber
9e59ca9bfe start adding tests for network net
* IsZeroMac
* IsBroadcastMac
* NormalizeMac
2018-04-30 22:42:02 -04:00