diff --git a/templates/index.html b/templates/index.html index 1729db7..ec94d5a 100644 --- a/templates/index.html +++ b/templates/index.html @@ -42,19 +42,19 @@ Proxy - {{ is_proxy }} + {% if is_proxy %}True{% else %}False{% endif %} VPN - {{ is_vpn }} + {% if is_vpn %}True{% else %}False{% endif %} Hosting - {{ is_hosting }} + {% if is_hosting %}True{% else %}False{% endif %} Tor - {{ is_tor }} + {% if is_tor %}True{% else %}False{% endif %} diff --git a/tests/integration.rs b/tests/integration.rs index f62c4ca..67c34fc 100644 --- a/tests/integration.rs +++ b/tests/integration.rs @@ -214,6 +214,8 @@ async fn browser_returns_html() { assert!(body.contains("45.77.77.77")); assert!(body.contains("Piscataway")); assert!(body.contains("AS20473")); + assert!(body.contains(">True<")); + assert!(body.contains(">False<")); } #[tokio::test]