mirror of
https://github.com/HackPlan/RootPanel.git
synced 2026-01-12 22:27:09 +08:00
fixbug
This commit is contained in:
@@ -33,16 +33,19 @@ queryIptablesInfo = (callback) ->
|
||||
for item in lines
|
||||
if is_chain_output
|
||||
if item
|
||||
[num, pkts, bytes, prot, opt, in_, out, source, destination, prot, port] = item.split /\s+/
|
||||
try
|
||||
[num, pkts, bytes, prot, opt, in_, out, source, destination, prot, port] = item.split /\s+/
|
||||
|
||||
unless num == 'num'
|
||||
port = port.match(/spt:(\d+)/)[1]
|
||||
unless num == 'num'
|
||||
port = port.match(/spt:(\d+)/)[1]
|
||||
|
||||
iptables_info[port.toString()] =
|
||||
num: parseInt num
|
||||
pkts: parseInt pkts
|
||||
bytes: parseInt bytes
|
||||
port: parseInt port
|
||||
iptables_info[port.toString()] =
|
||||
num: parseInt num
|
||||
pkts: parseInt pkts
|
||||
bytes: parseInt bytes
|
||||
port: parseInt
|
||||
catch e
|
||||
continue
|
||||
|
||||
if item[0...CHAIN_OUTPUT.length] == CHAIN_OUTPUT
|
||||
is_chain_output = true
|
||||
|
||||
@@ -17,7 +17,7 @@ module.exports =
|
||||
available_services: ['shadowsocks']
|
||||
|
||||
billing:
|
||||
taobao_item_id: '38370649858'
|
||||
taobao_item_id: '40711140727'
|
||||
|
||||
force_unsubscribe:
|
||||
when_balance_below: 0
|
||||
|
||||
Reference in New Issue
Block a user