From a4770aa153ee267dfba2b455943d32274118b8dd Mon Sep 17 00:00:00 2001
From: zhangli <1109134334@qq.com>
Date: Fri, 25 Mar 2022 12:38:56 +0800
Subject: [PATCH] =?UTF-8?q?123=E6=9C=8D=E5=8A=A1=E5=99=A8=E8=B7=B3?=
=?UTF-8?q?=E8=BF=87=E6=8E=88=E6=9D=83=E9=AA=8C=E8=AF=81=EF=BC=8C=E4=BF=AE?=
=?UTF-8?q?=E6=94=B9=E8=8E=B7=E5=8F=96IP?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../Learun.Application.Web/Controllers/HomeController.cs | 2 +-
.../Learun.Application.Web/Controllers/LoginController.cs | 2 +-
.../Learun.Application.Web/Learun.Application.Web.csproj | 3 +++
.../Learun.Framework.Module/Learun.Util/Learun.Util/Web/Net.cs | 2 +-
4 files changed, 6 insertions(+), 3 deletions(-)
diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Controllers/HomeController.cs b/Learun.Framework.Ultimate V7/Learun.Application.Web/Controllers/HomeController.cs
index f306f1d86..dc4be320b 100644
--- a/Learun.Framework.Ultimate V7/Learun.Application.Web/Controllers/HomeController.cs
+++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Controllers/HomeController.cs
@@ -425,7 +425,7 @@ namespace Learun.Application.Web.Controllers
public ActionResult Index()
{
//判断当前ip是否是123服务器,如果是123服务器,跳过授权验证
- if (Net.Ip != "183.185.97.88" && Net.Ip != "123.57.209.16")
+ if (Net.GetLanIp() != "172.17.3.181")
{
//授权验证
var lc = LicenseChecker.CheckLicense();
diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Controllers/LoginController.cs b/Learun.Framework.Ultimate V7/Learun.Application.Web/Controllers/LoginController.cs
index 1f00e1e50..b6ad3a64e 100644
--- a/Learun.Framework.Ultimate V7/Learun.Application.Web/Controllers/LoginController.cs
+++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Controllers/LoginController.cs
@@ -178,7 +178,7 @@ namespace Learun.Application.Web.Controllers
public ActionResult Index()
{
//判断当前ip是否是123服务器,如果是123服务器,跳过授权验证
- if (Net.Ip != "183.185.97.88" && Net.Ip != "123.57.209.16")
+ if (Net.GetLanIp() != "172.17.3.181")
{
//授权验证
var lc = LicenseChecker.CheckLicense();
diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Learun.Application.Web.csproj b/Learun.Framework.Ultimate V7/Learun.Application.Web/Learun.Application.Web.csproj
index 4e7428200..c99ed5339 100644
--- a/Learun.Framework.Ultimate V7/Learun.Application.Web/Learun.Application.Web.csproj
+++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Learun.Application.Web.csproj
@@ -7687,6 +7687,9 @@
+
+
+
diff --git a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Util/Learun.Util/Web/Net.cs b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Util/Learun.Util/Web/Net.cs
index 6a2f15ef6..d5e36989c 100644
--- a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Util/Learun.Util/Web/Net.cs
+++ b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Util/Learun.Util/Web/Net.cs
@@ -55,7 +55,7 @@ namespace Learun.Util
/// 获取局域网IP
///
///
- private static string GetLanIp()
+ public static string GetLanIp()
{
foreach (var hostAddress in Dns.GetHostAddresses(Dns.GetHostName()))
{