mirror of
https://github.com/pi-hole/FTL.git
synced 2024-10-26 16:52:18 +02:00
Add socket implementation to getClientID and use istelnet
Signed-off-by: Mcat12 <newtoncat12@yahoo.com>
This commit is contained in:
@@ -24,7 +24,7 @@ void getClientNames(int *sock);
|
||||
|
||||
// FTL methods
|
||||
void getMemoryUsage(int *sock);
|
||||
void getClientID(int *sock, char type);
|
||||
void getClientID(int *sock);
|
||||
void getVersion(int *sock, char type);
|
||||
void getDBstats(int *sock, char type);
|
||||
void getUnknownQueries(int *sock);
|
||||
|
||||
+5
-3
@@ -892,10 +892,12 @@ void getForwardDestinationsOverTime(int *sock)
|
||||
logg("Sent overTime forwarded data to client, ID: %i", *sock);
|
||||
}
|
||||
|
||||
void getClientID(int *sock, char type)
|
||||
void getClientID(int *sock)
|
||||
{
|
||||
|
||||
ssend(*sock,"%i\n", *sock);
|
||||
if(istelnet[*sock])
|
||||
ssend(*sock,"%i\n", *sock);
|
||||
else
|
||||
pack_int32(*sock, *sock);
|
||||
|
||||
if(debugclients)
|
||||
logg("Sent client ID to client, ID: %i", *sock);
|
||||
|
||||
Reference in New Issue
Block a user