Skip to content

Commit

Permalink
add comments
Browse files Browse the repository at this point in the history
  • Loading branch information
mwarning committed Sep 3, 2018
1 parent ffc4270 commit c94d22b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/auth.c
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ fw_refresh_client_list(void)
} else if (preauth_idle_timeout_secs > 0
&& conn_state == FW_MARK_PREAUTHENTICATED
&& (last_updated + preauth_idle_timeout_secs) <= now) {
/* Timeout inactive user */
/* Timeout inactive preauthenticated user */
debug(LOG_NOTICE, "Timeout preauthenticated idle user: %s %s, inactive: %ds, in: %llukB, out: %llukB",
cp1->ip, cp1->mac, now - last_updated,
cp1->counters.incoming / 1000, cp1->counters.outgoing / 1000);
Expand Down
2 changes: 2 additions & 0 deletions src/client_list.c
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,8 @@ _client_list_append(const char mac[], const char ip[])
client->ip = safe_strdup(ip);
client_renew_token(client);

// Blocked or Trusted client do not trigger the splash page.
// They must access the splash or status page manually.
if (is_blocked_mac(mac)) {
client->fw_connection_state = FW_MARK_BLOCKED;
} else if(is_allowed_mac(mac) || is_trusted_mac(mac)) {
Expand Down

0 comments on commit c94d22b

Please sign in to comment.