Skip to content

Commit

Permalink
Fixes #835
Browse files Browse the repository at this point in the history
  • Loading branch information
adamdriscoll committed May 27, 2019
1 parent 552a43d commit 9e09fc3
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 20 deletions.
5 changes: 5 additions & 0 deletions src/UniversalDashboard/Utilities/HttpRequestExtensions.cs
Expand Up @@ -12,6 +12,11 @@ public static bool IsLocal(this HttpRequest req)
{
if (connection.LocalIpAddress != null)
{
if (IPAddress.IsLoopback(connection.RemoteIpAddress) && IPAddress.IsLoopback(connection.LocalIpAddress))
{
return true;
}

return connection.RemoteIpAddress.Equals(connection.LocalIpAddress);
}
else
Expand Down
35 changes: 16 additions & 19 deletions src/client/package-lock.json

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

2 changes: 1 addition & 1 deletion src/client/src/app/no-remote.jsx
Expand Up @@ -27,7 +27,7 @@ export default class NoRemote extends React.Component {
};

return (
<div style={overlay} title="Click to turn off the overlay effect">
<div style={overlay}>
<div style={text}>Universal Dashboard Enterprise cannot be used remotely when unlicensed.</div>
</div>
)
Expand Down

0 comments on commit 9e09fc3

Please sign in to comment.