From patchwork Sat Jun 19 14:03:14 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stefan Schantl X-Patchwork-Id: 4444 Return-Path: Received: from mail01.ipfire.org (mail01.haj.ipfire.org [172.28.1.202]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) client-signature ECDSA (P-384)) (Client CN "mail01.haj.ipfire.org", Issuer "R3" (verified OK)) by web04.haj.ipfire.org (Postfix) with ESMTPS id 4G6cvc6MCDz3x6s for ; Sat, 19 Jun 2021 14:03:24 +0000 (UTC) Received: from mail02.haj.ipfire.org (mail02.haj.ipfire.org [172.28.1.201]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) client-signature ECDSA (P-384)) (Client CN "mail02.haj.ipfire.org", Issuer "R3" (verified OK)) by mail01.ipfire.org (Postfix) with ESMTPS id 4G6cvb6nYSztL; Sat, 19 Jun 2021 14:03:23 +0000 (UTC) Received: from mail02.haj.ipfire.org (localhost [127.0.0.1]) by mail02.haj.ipfire.org (Postfix) with ESMTP id 4G6cvb5s7Fz2xZr; Sat, 19 Jun 2021 14:03:23 +0000 (UTC) Received: from mail01.ipfire.org (mail01.haj.ipfire.org [172.28.1.202]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) server-digest SHA384 client-signature ECDSA (P-384) client-digest SHA384) (Client CN "mail01.haj.ipfire.org", Issuer "R3" (verified OK)) by mail02.haj.ipfire.org (Postfix) with ESMTPS id 4G6cvZ3xhqz2xKp for ; Sat, 19 Jun 2021 14:03:22 +0000 (UTC) Received: from [127.0.0.1] (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) server-digest SHA384) (No client certificate requested) by mail01.ipfire.org (Postfix) with ESMTPSA id 4G6cvY70LWzrM; Sat, 19 Jun 2021 14:03:21 +0000 (UTC) DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=ipfire.org; s=202003ed25519; t=1624111402; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=LxsSRwPigu7R32mCIAhqwsq7XsRh6dqOjmJzBBc2RTo=; b=250nUZhKEGaK3ABU2aQtrZE1fFcWyS8k6kiGgj2E7jKOM2c8r3Ef1d5rQpHLOW3dgHhK7k lM/4sEZe7kt9KIAQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ipfire.org; s=202003rsa; t=1624111402; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=LxsSRwPigu7R32mCIAhqwsq7XsRh6dqOjmJzBBc2RTo=; b=JvtQKwZuDcFOoxj8aTsbIZBHDdBv3iGH9TZiFwGztO+4L/86VLqj4NeDu2OBfQbnB8mftw SXmyUV8aveYNATWVZx3jg7D8SR9YT4MqJHVQpGIkb1IbRTkanzKURDv8mnCbusW1gsJRlw XEkZ6LIaWYncH9eJtMdBYqz/axrujcJaYC/Aq9dgTZjJPAK+fPEq5BNLsYjpmZLsCbK/Jv XZN8HBToFMNuZLI4QDxIjJj54h0jxiCbFnh1ZRv4bpN+mK1AkS+BxKzj+xBzU5vs6Wkogp aAckjZCsstZrXfd4a5AFsxcnRK18KW1Rgaul6I3nROyevuri49dbr2Bzhk3Ebw== From: Stefan Schantl To: development@lists.ipfire.org Subject: [PATCH] speed.cgi: Add requirement for general-functions.pl. Date: Sat, 19 Jun 2021 16:03:14 +0200 Message-Id: <20210619140314.2397-1-stefan.schantl@ipfire.org> MIME-Version: 1.0 X-BeenThere: development@lists.ipfire.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: IPFire development talk List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: development-bounces@lists.ipfire.org Sender: "Development" The CGI now requires the general-functions library, because the get_red_interface() function is used. Signed-off-by: Stefan Schantl Reviewed-by: Adolf Belka Tested-by: Adolf Belka --- html/cgi-bin/speed.cgi | 2 ++ 1 file changed, 2 insertions(+) diff --git a/html/cgi-bin/speed.cgi b/html/cgi-bin/speed.cgi index 8acdb2bd8..b550fda52 100644 --- a/html/cgi-bin/speed.cgi +++ b/html/cgi-bin/speed.cgi @@ -19,6 +19,8 @@ # # ############################################################################### +require '/var/ipfire/general-functions.pl'; + my $data_last = $ENV{'QUERY_STRING'}; my $rxb_last = 0; my $txb_last = 0;