[1/4] connections.cgi: Fix colour of destination country

Message ID 20241206164417.3840426-1-michael.tremer@ipfire.org
State New
Headers
Series [1/4] connections.cgi: Fix colour of destination country |

Commit Message

Michael Tremer Dec. 6, 2024, 4:44 p.m. UTC
  Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
---
 html/cgi-bin/connections.cgi | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
  

Comments

Bernhard Bitsch Dec. 6, 2024, 10:09 p.m. UTC | #1
Reviewed-by: Bernhard Bitsch <bbitsch@ipfire.org>

Am 06.12.2024 um 17:44 schrieb Michael Tremer:
> Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
> ---
>   html/cgi-bin/connections.cgi | 2 +-
>   1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/html/cgi-bin/connections.cgi b/html/cgi-bin/connections.cgi
> index badc1f395..af375effe 100644
> --- a/html/cgi-bin/connections.cgi
> +++ b/html/cgi-bin/connections.cgi
> @@ -439,7 +439,7 @@ foreach my $line (<CONNTRACK>) {
>   			</a>
>   			$dport_extra
>   		</td>
> -		<td style='text-align:center; background-color:$sip_colour;'>
> +		<td style='text-align:center; background-color:$dip_colour;'>
>   			<a href='country.cgi#$dstccode'><img src='$dst_flag_icon' border='0' align='absmiddle' alt='$dstccode' title='$dstccode' /></a>
>   		</td>
>   		<td class="text-right">
  

Patch

diff --git a/html/cgi-bin/connections.cgi b/html/cgi-bin/connections.cgi
index badc1f395..af375effe 100644
--- a/html/cgi-bin/connections.cgi
+++ b/html/cgi-bin/connections.cgi
@@ -439,7 +439,7 @@  foreach my $line (<CONNTRACK>) {
 			</a>
 			$dport_extra
 		</td>
-		<td style='text-align:center; background-color:$sip_colour;'>
+		<td style='text-align:center; background-color:$dip_colour;'>
 			<a href='country.cgi#$dstccode'><img src='$dst_flag_icon' border='0' align='absmiddle' alt='$dstccode' title='$dstccode' /></a>
 		</td>
 		<td class="text-right">