Update v4 connection warning

This commit is contained in:
Laura Hausmann 2022-11-22 00:31:04 +01:00
parent 724d39ada7
commit b3f479467c
Signed by: zotan
GPG key ID: D044E84C5BE01605

View file

@ -36,7 +36,7 @@
</p>
<p>Here you can find my contact info, crypto keys, projects, and a few links.</p>
@if (Request.Headers["X-Forwarded-For"] == "::1") {
@if (Request.Headers["X-Forwarded-For"] == "::1" || Request.Headers["X-Forwarded-For"].ToString().Contains(".") || Request.Headers["X-Forwarded-For"].ToString().StartsWith("2a01:4f8:10a:23a7:4646:4646:")) {
<p style="background-color:#333; padding:5px 7px;">Many of my services are IPv6-only, and more are soon to follow. Your browser preferred IPv4 while connecting to this website, so please <a href="https://ip6.biz" target="_blank">check your connection</a> for IPv6 support before contacting me if your browser displays a network error.</p>
}