Skip to content

Commit

Permalink
trap use of hardware mac address, bump version
Browse files Browse the repository at this point in the history
  • Loading branch information
triode committed Nov 21, 2014
1 parent b03b568 commit 9094ec5
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
12 changes: 8 additions & 4 deletions main.c
Original file line number Diff line number Diff line change
Expand Up @@ -284,10 +284,14 @@ int main(int argc, char **argv) {
{
int byte = 0;
char *tmp;
char *t = strtok(optarg, ":");
while (t && byte < 6) {
mac[byte++] = (u8_t)strtoul(t, &tmp, 16);
t = strtok(NULL, ":");
if (!strncmp(optarg, "00:04:20", 8)) {
LOG_ERROR("ignoring mac address from hardware player range 00:04:20:**:**:**");
} else {
char *t = strtok(optarg, ":");
while (t && byte < 6) {
mac[byte++] = (u8_t)strtoul(t, &tmp, 16);
t = strtok(NULL, ":");
}
}
}
break;
Expand Down
2 changes: 1 addition & 1 deletion squeezelite.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@

// make may define: PORTAUDIO, SELFPIPE, RESAMPLE, RESAMPLE_MP, VISEXPORT, DSD, LINKALL to influence build

#define VERSION "v1.6.4"
#define VERSION "v1.6.5"

// build detection
#if defined(linux)
Expand Down

0 comments on commit 9094ec5

Please sign in to comment.