修改
This commit is contained in:
@@ -33,8 +33,7 @@ public class IpUtils {
|
|||||||
// 仅保留IPv4地址,且排除回环地址
|
// 仅保留IPv4地址,且排除回环地址
|
||||||
if (addr instanceof Inet4Address && !addr.isLoopbackAddress()) {
|
if (addr instanceof Inet4Address && !addr.isLoopbackAddress()) {
|
||||||
String ip = addr.getHostAddress();
|
String ip = addr.getHostAddress();
|
||||||
// 过滤掉docker等虚拟网卡的IP(可选,根据实际场景调整)
|
if (!ip.startsWith("172.") && !ip.startsWith("192.168.31.")) {
|
||||||
if (!ip.startsWith("172.") && !ip.startsWith("192.168.99.")) {
|
|
||||||
return ip;
|
return ip;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -707,7 +707,7 @@ file:
|
|||||||
enabled: true
|
enabled: true
|
||||||
|
|
||||||
# # 文件上传根路径,设置路径中不允许包含“userfiles”,在指定目录中系统会自动创建userfiles目录,如果不设置默认为contextPath路径
|
# # 文件上传根路径,设置路径中不允许包含“userfiles”,在指定目录中系统会自动创建userfiles目录,如果不设置默认为contextPath路径
|
||||||
baseDir: /ogsapp/data
|
baseDir: /ogsapp/files
|
||||||
#
|
#
|
||||||
# # 上传文件的相对路径(支持:yyyy、MM、dd、HH、mm、ss、E、bizType、corpCode、userCode、userType、userCache中的key)
|
# # 上传文件的相对路径(支持:yyyy、MM、dd、HH、mm、ss、E、bizType、corpCode、userCode、userType、userCache中的key)
|
||||||
# uploadPath: '{yyyy}{MM}/'
|
# uploadPath: '{yyyy}{MM}/'
|
||||||
|
|||||||
Reference in New Issue
Block a user