mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-26 19:00:34 +02:00
captivectrl: Skip all lines that start with #
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
This commit is contained in:
@@ -71,6 +71,10 @@ static client_t* read_clients(char* filename) {
|
||||
if (line[strlen(line) - 1] == '\n')
|
||||
line[strlen(line) - 1] = '\0';
|
||||
|
||||
// Skip all commented lines
|
||||
if (*line == '#')
|
||||
continue;
|
||||
|
||||
client_curr = (client_t*)malloc(sizeof(client_t));
|
||||
memset(client_curr, 0, sizeof(client_t));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user