Skip to content

Commit

Permalink
Print XFF table row only if XFF is not empty
Browse files Browse the repository at this point in the history
  • Loading branch information
pnedkov committed Dec 29, 2023
1 parent a574aa0 commit ca31f3e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions ipget/templates/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,13 @@
<td>IP Address</td>
<td><p>{{ client_info.ip }}</p></td>
</tr>
{% if client_info.xff %}
<tr>
<td>curl {{ client_info.remote_hostname }}/xff</td>
<td>X-Forwarded-For</td>
<td>{{ client_info.xff }}</td>
</tr>
{% endif %}
{% if ip_api %}
<tr>
<td></td>
Expand Down

0 comments on commit ca31f3e

Please sign in to comment.