Commit e95f37ac authored by Jonathon Duerig's avatar Jonathon Duerig

MAC addresses have 12 digits. Changed regex to reflect that.

parent c8da063e
......@@ -130,7 +130,7 @@ else {
}
if (defined($options{'m'})) {
$mac = $options{'m'};
if ($mac !~ /^\w\w\w\w\w\w\w\w\w\w\w\w\w/) {
if ($mac !~ /^\w\w\w\w\w\w\w\w\w\w\w\w/) {
fatal("Invalid mac address format");
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment