This commit is contained in:
jysperm
2014-08-31 01:08:42 +08:00
parent f30a4d6a90
commit 44cb674560
2 changed files with 12 additions and 9 deletions

View File

@@ -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

View File

@@ -17,7 +17,7 @@ module.exports =
available_services: ['shadowsocks']
billing:
taobao_item_id: '38370649858'
taobao_item_id: '40711140727'
force_unsubscribe:
when_balance_below: 0