Skip to content

Commit

Permalink
feat: initialize first_login timestamp for new clients in client_list…
Browse files Browse the repository at this point in the history
…_add

Signed-off-by: Dengfeng Liu <[email protected]>
  • Loading branch information
liudf0716 committed Feb 1, 2025
1 parent 5aac94f commit 28105a0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/client_list.c
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,7 @@ client_list_add(const char *ip, const char *mac, const char *token, t_gateway_se
curclient->counters.outgoing_history = 0;
curclient->counters.last_updated = time(NULL);
curclient->gw_setting = gw_setting;
curclient->first_login = time(NULL);

client_list_insert_client(curclient);

Expand Down

0 comments on commit 28105a0

Please sign in to comment.