Skip to content

Commit

Permalink
Fix style and typo
Browse files Browse the repository at this point in the history
  • Loading branch information
joel0 committed Dec 14, 2020
1 parent a4196f3 commit 3968381
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion HostnamePlus/Views/Index/Curl.cshtml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
@String.Format(formatString, "IP: ")@Model.IP
@foreach (IpInfoModel ipInfo in Model.GetProxiedIpsInfo())
{
@String.Format(formatString, "X-Forwarder-For IP: ")@[email protected]("\n")
@String.Format(formatString, "X-Forwarded-For IP: ")@[email protected]("\n")
@String.Format(formatString, "X-Forwarded-For HN: ")@await ipInfo.GetHostNameAsync()@Html.Raw("\n")
}
@String.Format(formatString, "UserAgent: ")@Model.GetUserAgent()
Expand Down
4 changes: 2 additions & 2 deletions HostnamePlus/Views/Index/Index.cshtml
Original file line number Diff line number Diff line change
Expand Up @@ -23,15 +23,15 @@
<span id="OtherHostname"></span>
@foreach (IpInfoModel ipInfo in Model.GetProxiedIpsInfo())
{
<span class='versionLabel'>X-Forwarded-For: </span>@await ipInfo.GetHostNameAsync()<br />
<br /><span class='versionLabel'>X-Forwarded-For: </span>@await ipInfo.GetHostNameAsync()<br />
}

<h2 class="sectionHeading">IP</h2>
<span class='versionLabel'>@Model.GetIpType(): </span>@Model.IP<br />
<span id="OtherAddress"></span>
@foreach (IpInfoModel ipInfo in Model.GetProxiedIpsInfo())
{
<span class='versionLabel'>X-Forwarded-For: </span>@ipInfo.IpString<br />
<br /><span class='versionLabel'>X-Forwarded-For: </span>@ipInfo.IpString<br />
}

<h2 class="sectionHeading">User Agent</h2>
Expand Down
4 changes: 2 additions & 2 deletions HostnamePlus/wwwroot/js/GetOtherIp.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ function handleReply() {
// This object is defined in Models/IndexModel.
var otherIpInfo = this.response;
var prefix = "<br /><span class='versionLabel'>" + otherIpType + ": </span>";
var addressInnnerHtml = prefix + otherIpInfo.ip;
var hostNameInnerHtml = prefix + otherIpInfo.hostName;
var addressInnnerHtml = prefix + otherIpInfo.ip + "<br />";
var hostNameInnerHtml = prefix + otherIpInfo.hostName + "<br />";
document.getElementById("OtherAddress").innerHTML = addressInnnerHtml;
document.getElementById("OtherHostname").innerHTML = hostNameInnerHtml;
}
Expand Down
2 changes: 1 addition & 1 deletion HostnamePlus/wwwroot/js/GetOtherIp.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 3968381

Please sign in to comment.