1
0
Fork 0
mirror of https://github.com/Ysurac/openmptcprouter-feeds.git synced 2025-03-09 15:40:03 +00:00

Fix omr-bypass fs.lines truncation (#15)

* Fix omr-bypass fs.lines truncation

* Fix spaces
This commit is contained in:
Vincent Rouillé 2020-08-03 19:06:14 +02:00 committed by GitHub
parent 87d09b7632
commit edf0362615
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -169,11 +169,11 @@ return L.view.extend({
o.rmempty = false;
o.load = function(section_id) {
return Promise.all([
fs.lines('/proc/net/xt_ndpi/proto'),
fs.lines('/proc/net/xt_ndpi/host_proto')
]).then(L.bind(function(linesi) {
var proto = linesi[0],
host = linesi[1],
fs.read_direct('/proc/net/xt_ndpi/proto'),
fs.read_direct('/proc/net/xt_ndpi/host_proto')
]).then(L.bind(function(filesi) {
var proto = filesi[0].split(/\n/),
host = filesi[1].split(/\n/),
name = [];
for (var i = 0; i < proto.length; i++) {
var m = proto[i].split(/\s+/);