diff --git a/HostnamePlus/Views/Index/Curl.cshtml b/HostnamePlus/Views/Index/Curl.cshtml
index 33593a7..350b9a8 100644
--- a/HostnamePlus/Views/Index/Curl.cshtml
+++ b/HostnamePlus/Views/Index/Curl.cshtml
@@ -8,7 +8,7 @@
@String.Format(formatString, "IP: ")@Model.IP
@foreach (IpInfoModel ipInfo in Model.GetProxiedIpsInfo())
{
- @String.Format(formatString, "X-Forwarder-For IP: ")@ipInfo.IpString@Html.Raw("\n")
+ @String.Format(formatString, "X-Forwarded-For IP: ")@ipInfo.IpString@Html.Raw("\n")
@String.Format(formatString, "X-Forwarded-For HN: ")@await ipInfo.GetHostNameAsync()@Html.Raw("\n")
}
@String.Format(formatString, "UserAgent: ")@Model.GetUserAgent()
diff --git a/HostnamePlus/Views/Index/Index.cshtml b/HostnamePlus/Views/Index/Index.cshtml
index 154e039..6c59e8a 100644
--- a/HostnamePlus/Views/Index/Index.cshtml
+++ b/HostnamePlus/Views/Index/Index.cshtml
@@ -23,7 +23,7 @@
@foreach (IpInfoModel ipInfo in Model.GetProxiedIpsInfo())
{
- X-Forwarded-For: @await ipInfo.GetHostNameAsync()
+
X-Forwarded-For: @await ipInfo.GetHostNameAsync()
}
IP
@@ -31,7 +31,7 @@
@foreach (IpInfoModel ipInfo in Model.GetProxiedIpsInfo())
{
- X-Forwarded-For: @ipInfo.IpString
+
X-Forwarded-For: @ipInfo.IpString
}
User Agent
diff --git a/HostnamePlus/wwwroot/js/GetOtherIp.js b/HostnamePlus/wwwroot/js/GetOtherIp.js
index 050a070..adb82b4 100644
--- a/HostnamePlus/wwwroot/js/GetOtherIp.js
+++ b/HostnamePlus/wwwroot/js/GetOtherIp.js
@@ -16,8 +16,8 @@ function handleReply() {
// This object is defined in Models/IndexModel.
var otherIpInfo = this.response;
var prefix = "
" + otherIpType + ": ";
- var addressInnnerHtml = prefix + otherIpInfo.ip;
- var hostNameInnerHtml = prefix + otherIpInfo.hostName;
+ var addressInnnerHtml = prefix + otherIpInfo.ip + "
";
+ var hostNameInnerHtml = prefix + otherIpInfo.hostName + "
";
document.getElementById("OtherAddress").innerHTML = addressInnnerHtml;
document.getElementById("OtherHostname").innerHTML = hostNameInnerHtml;
}
diff --git a/HostnamePlus/wwwroot/js/GetOtherIp.min.js b/HostnamePlus/wwwroot/js/GetOtherIp.min.js
index 555051d..be21231 100644
--- a/HostnamePlus/wwwroot/js/GetOtherIp.min.js
+++ b/HostnamePlus/wwwroot/js/GetOtherIp.min.js
@@ -1 +1 @@
-function handleReply(){if(this.readyState==4&&this.status==200){var n=this.response,t="
"+otherIpType+": <\/span>",i=t+n.ip,r=t+n.hostName;document.getElementById("OtherAddress").innerHTML=i;document.getElementById("OtherHostname").innerHTML=r}}var req=new XMLHttpRequest;req.onreadystatechange=handleReply;req.responseType="json";req.open("GET",otherIpAPIURL,!0);req.send();
\ No newline at end of file
+function handleReply(){if(this.readyState==4&&this.status==200){var n=this.response,t="
"+otherIpType+": <\/span>
",i=t+n.ip,r=t+n.hostName;document.getElementById("OtherAddress").innerHTML=i;document.getElementById("OtherHostname").innerHTML=r}}var req=new XMLHttpRequest;req.onreadystatechange=handleReply;req.responseType="json";req.open("GET",otherIpAPIURL,!0);req.send();
\ No newline at end of file