mirror of
https://github.com/pi-hole/FTL.git
synced 2024-10-26 16:52:18 +02:00
Add ">clientID"
This commit is contained in:
@@ -190,3 +190,7 @@ memory allocated for internal data structure: 178688 bytes (178.69 KB)
|
||||
dynamically allocated allocated memory used for strings: 15084 bytes (15.08 KB)
|
||||
Sum: 193772 bytes (193.77 KB)
|
||||
```
|
||||
- `>clientID` : Get ID of currently connected client
|
||||
```
|
||||
6
|
||||
```
|
||||
|
||||
@@ -455,6 +455,15 @@ void process_request(char *client_message, int *sock)
|
||||
if(debugclients)
|
||||
logg_int("Sent memory data to client, ID: ", *sock);
|
||||
}
|
||||
else if(command(client_message, ">clientID"))
|
||||
{
|
||||
processed = true;
|
||||
sprintf(server_message,"%i\n", *sock);
|
||||
swrite(server_message, *sock);
|
||||
|
||||
if(debugclients)
|
||||
logg_int("Sent client ID to client, ID: ", *sock);
|
||||
}
|
||||
|
||||
// End of queryable commands
|
||||
if(processed)
|
||||
|
||||
Reference in New Issue
Block a user