Skip to content

Commit 84c8b0e

Browse files
committed
Add error message when duplicate mac encountered.
1 parent 8000fb3 commit 84c8b0e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/conf.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -871,6 +871,8 @@ parse_trusted_mac_list(const char *ptr)
871871
p = p->next;
872872
p->mac = safe_strdup(mac);
873873
p->next = NULL;
874+
} else {
875+
debug(LOG_ERR, "MAC address [%s] already on trusted list. See option TrustedMACList in wifidog.conf file ", mac);
874876
}
875877
}
876878
}

0 commit comments

Comments
 (0)