From 975c377fff1c314e20ec7908f2df669355adb06e Mon Sep 17 00:00:00 2001 From: Blackwhitebear8 Date: Tue, 19 Aug 2025 13:55:18 +0200 Subject: [PATCH] Update latency-api.php --- latency-api.php | 4 ++++ latency.php | 38 -------------------------------------- 2 files changed, 4 insertions(+), 38 deletions(-) create mode 100644 latency-api.php delete mode 100644 latency.php diff --git a/latency-api.php b/latency-api.php new file mode 100644 index 0000000..9e848ea --- /dev/null +++ b/latency-api.php @@ -0,0 +1,4 @@ + 'ok']); +?> \ No newline at end of file diff --git a/latency.php b/latency.php deleted file mode 100644 index ddfbcd0..0000000 --- a/latency.php +++ /dev/null @@ -1,38 +0,0 @@ - $host, - 'latency_ms' => $latency_rounded, - ]; - - return json_encode($response, JSON_PRETTY_PRINT); - } else { - return json_encode([ - 'error' => 'Ping failed', - ], JSON_PRETTY_PRINT); - } -} - -$client_ip = $_SERVER['REMOTE_ADDR']; - -echo testLatency($client_ip); -?> \ No newline at end of file