mirror of
https://e.coding.net/circlecloud/Yum.git
synced 2024-11-22 14:28:46 +00:00
feat: 添加网络监控URL白名单
Signed-off-by: 502647092 <admin@yumc.pw>
This commit is contained in:
parent
1c3da1f010
commit
4ef3f38624
8
pom.xml
8
pom.xml
@ -3,7 +3,7 @@
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<groupId>pw.yumc</groupId>
|
||||
<artifactId>Yum</artifactId>
|
||||
<version>2.2</version>
|
||||
<version>2.3</version>
|
||||
<name>Yum</name>
|
||||
<description>Minecraft 服务器插件管理系统</description>
|
||||
<build>
|
||||
@ -58,12 +58,12 @@
|
||||
<url>http://ci.yumc.pw/job/${project.artifactId}/</url>
|
||||
</ciManagement>
|
||||
<properties>
|
||||
<update.description>&a全新 2.2 版本 添加线程安全管理</update.description>
|
||||
<update.description>&a全新 2.X 版本 更多守护与优化</update.description>
|
||||
<update.changes>
|
||||
&b2.2 &6- &e新增线程安全拦截 主线程IO拦截...;
|
||||
&b2.3 &6- &a网络监控添加域名白名单功能...;
|
||||
&b2.2 &6- &b新增线程安全拦截 主线程IO拦截...;
|
||||
&b2.1 &6- &e新增网络管理 防止主线程卡IO...;
|
||||
&b &6- &d新增安全管理系统(需要&dbBukkitInjectedTools&d)...;
|
||||
&b2.0.3 &6- &a重载所有插件时忽略部分已注册服务插件...;
|
||||
</update.changes>
|
||||
<env.GIT_COMMIT>DEBUG</env.GIT_COMMIT>
|
||||
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
||||
|
@ -36,6 +36,9 @@ public class PluginNetworkListener implements Listener {
|
||||
if (urlinfo.startsWith("socket")) {
|
||||
return;
|
||||
}
|
||||
if (ConfigManager.i().getNetworkWhiteURL().contains(e.getUrl().getHost())) {
|
||||
return;
|
||||
}
|
||||
if (urlinfo.contains("yumc") || urlinfo.contains("502647092")) {
|
||||
final String 大神你好 = "反编译的大神们我知道你们又要说了这货有后门";
|
||||
大神你好.isEmpty();
|
||||
|
@ -46,6 +46,10 @@ public class ConfigManager {
|
||||
return network.getStringList(IGNORE);
|
||||
}
|
||||
|
||||
public List<String> getNetworkWhiteURL() {
|
||||
return network.getStringList("WhiteURL");
|
||||
}
|
||||
|
||||
public List<String> getSetOpBlackList() {
|
||||
return setop.getStringList(BLACK);
|
||||
}
|
||||
|
@ -1,5 +1,5 @@
|
||||
#配置版本号 请勿修改!!!
|
||||
Version: 1.1
|
||||
Version: 1.2
|
||||
|
||||
#是否开启
|
||||
Enable: true
|
||||
@ -16,3 +16,9 @@ Black:
|
||||
#忽略检测列表
|
||||
Ignore:
|
||||
- Essentials
|
||||
#白名单域名(例如: http://report.mcstats.org/plugin/Vault 只需要填写 report.mcstats.org 即可)
|
||||
WhiteURL:
|
||||
- mcstats.org
|
||||
- report.mcstats.org
|
||||
- www.spigotmc.org
|
||||
- dev.bukkit.org
|
Loading…
Reference in New Issue
Block a user