Compare commits

...
3 Commits
Author SHA1 Message Date
action 6c8d00d18c update 2026-09-04 06:09:30 2026-09-04 06:09:30 +08:00
action e28fd0631a update 2026-09-04 03:02:09 2026-09-04 03:02:09 +08:00
action 029903be2e update 2026-09-03 23:39:11 2026-09-03 23:39:11 +08:00
11 changed files with 27 additions and 19 deletions
+2 -2
View File
@@ -7,13 +7,13 @@
include $(TOPDIR)/rules.mk
PKG_NAME:=alist
PKG_VERSION:=3.63.0
PKG_VERSION:=3.64.0
PKG_WEB_VERSION:=3.64.0
PKG_RELEASE:=1
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=https://codeload.github.com/AlistGo/alist/tar.gz/v$(PKG_VERSION)?
PKG_HASH:=a850506424e695bbbf411a928711588bcb8274d64b88029ecf0856cc4c21763b
PKG_HASH:=599065ec4b26375e4012cf212415f4195c9b92864bdcde4105356261920563f4
PKG_LICENSE:=GPL-3.0
PKG_LICENSE_FILE:=LICENSE
BIN
View File
Binary file not shown.

Before

Width:  |  Height:  |  Size: 91 KiB

BIN
View File
Binary file not shown.

Before

Width:  |  Height:  |  Size: 319 KiB

BIN
View File
Binary file not shown.

Before

Width:  |  Height:  |  Size: 389 KiB

BIN
View File
Binary file not shown.

After

Width:  |  Height:  |  Size: 640 KiB

BIN
View File
Binary file not shown.

After

Width:  |  Height:  |  Size: 550 KiB

BIN
View File
Binary file not shown.

After

Width:  |  Height:  |  Size: 547 KiB

BIN
View File
Binary file not shown.

After

Width:  |  Height:  |  Size: 659 KiB

BIN
View File
Binary file not shown.

After

Width:  |  Height:  |  Size: 650 KiB

@@ -16,25 +16,34 @@ return view.extend({
load: function () {
return Promise.all([
this.callHostHints(),
fs.read('/proc/net/arp')
this.callHostHints()
]);
},
parseArp: function (data) {
var lines = data.split('\n'),
hosts = [];
parseHostHints: function (data) {
var hosts = [];
for (var i = 1; i < lines.length; i++) {
var columns = lines[i].replace(/ +/g, ' ').split(' ');
Object.keys(data || {}).forEach(function (mac) {
var hint = data[mac] || {},
ipaddrs = hint.ipaddrs || hint.ipv4 || [];
if (columns.length >= 6) {
hosts.push({
ip: columns[0],
mac: columns[3]
});
}
}
if (!Array.isArray(ipaddrs))
ipaddrs = [ ipaddrs ];
ipaddrs.forEach(function (ip) {
var octets = (typeof(ip) === 'string' && /^\d{1,3}(\.\d{1,3}){3}$/.test(ip))
? ip.split('.').map(Number) : [];
if (octets.length === 4 && octets.every(function (octet) {
return octet >= 0 && octet <= 255;
})) {
hosts.push({
ip: ip,
mac: mac
});
}
});
});
// Sort hosts array by IP address
hosts.sort(function (a, b) {
@@ -62,8 +71,7 @@ return view.extend({
},
render: function (data) {
var arpData = data[1],
hosts = this.parseArp(arpData),
var hosts = this.parseHostHints(data[0]),
m, s, o,
programPath = '/usr/share/wechatpush/wechatpush';
@@ -4,13 +4,13 @@
"read": {
"file": {
"/etc/init.d/wechatpush": [ "exec" ],
"/proc/net/arp": [ "read" ],
"/usr/share/wechatpush/wechatpush": [ "exec" ],
"/tmp/wechatpush/*": [ "read" ],
"/usr/share/wechatpush/api/*": [ "read" ],
"/usr/libexec/wechatpush-call": [ "exec" ]
},
"ubus": {
"luci-rpc": [ "getHostHints" ],
"service": [ "list" ]
},
"uci": [ "wechatpush" ]