From a84f541bd79e4a6632d33b4bf9f9cbe9f79c9b36 Mon Sep 17 00:00:00 2001 From: 40huo Date: Tue, 25 Feb 2020 23:43:48 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E6=B7=BB=E5=8A=A0b=E7=AB=99=E8=A7=86?= =?UTF-8?q?=E9=A2=91=E8=A7=84=E5=88=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- resources/conf/rule/lhie1_Rule.yaml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/resources/conf/rule/lhie1_Rule.yaml b/resources/conf/rule/lhie1_Rule.yaml index a2aa90d3..142437de 100644 --- a/resources/conf/rule/lhie1_Rule.yaml +++ b/resources/conf/rule/lhie1_Rule.yaml @@ -123,6 +123,7 @@ Rule: - DOMAIN-SUFFIX,biligame.net,AsianTV - DOMAIN-SUFFIX,hdslb.com,AsianTV - DOMAIN-SUFFIX,im9.com,AsianTV +- DOMAIN-SUFFIX,bilivideo.com,AsianTV # > IQIYI - DOMAIN-KEYWORD,qiyi,AsianTV @@ -798,4 +799,4 @@ Rule: # GeoIP China - GEOIP,CN,Domestic -- MATCH,Others \ No newline at end of file +- MATCH,Others From 37bf590f731330a4bba596904fe7fcbaa5878fad Mon Sep 17 00:00:00 2001 From: Gtary <54979375+du5@users.noreply.github.com> Date: Fri, 28 Feb 2020 00:06:45 +0800 Subject: [PATCH 2/2] =?UTF-8?q?fix=20bug:=20=20=E4=BB=BB=E4=BD=95Key?= =?UTF-8?q?=E5=9D=87=E5=8F=AF=E8=8E=B7=E5=8F=96=E7=94=A8=E6=88=B7=E4=BF=A1?= =?UTF-8?q?=E6=81=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/Middleware/Mod_Mu.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/app/Middleware/Mod_Mu.php b/app/Middleware/Mod_Mu.php index b548ea01..9256f200 100644 --- a/app/Middleware/Mod_Mu.php +++ b/app/Middleware/Mod_Mu.php @@ -26,6 +26,12 @@ class Mod_Mu $keys = Config::getMuKey(); $auth = in_array($key, $keys); + if ($auth === false){ + return $response->withJson([ + 'ret' => 0, + 'data' => 'Token or IP is invalid. Now, your IP address is ' . $_SERVER['REMOTE_ADDR'] + ]); + } if (Config::get('checkNodeIp') === true){ $node = Node::where('node_ip', 'LIKE', $_SERVER['REMOTE_ADDR'] . '%')->first();