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