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:
parent
87d09b7632
commit
edf0362615
1 changed files with 5 additions and 5 deletions
|
@ -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+/);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue