cur.execute("SELECT `node_group`,`node_class`,`node_speedlimit`,`traffic_rate`,`mu_only`,`sort`, `node_offset`,`ss_method`,`ss_protocol`,`ss_obfs` FROM ss_node where `id`='"+
str(get_config().NODE_ID)+"' AND (`node_bandwidth`<`node_bandwidth_limit` OR `node_bandwidth_limit`=0)")
str(get_mconfig().NODE_ID)+"' AND (`node_bandwidth`<`node_bandwidth_limit` OR `node_bandwidth_limit`=0)")
nodeinfo=cur.fetchone()
@ -297,7 +297,7 @@ class DbTransfer(object):
# read single port part
cur=conn.cursor()
cur.execute("SELECT `id`,`ss_method`,`ss_protocol`,`ss_obfs`,`port`,`type`,`node_speedlimit`,`passwd` FROM ss_node_m where `pid`='"+
str(get_config().NODE_ID)+"' AND `enable`=1 AND `support`<4")
str(get_mconfig().NODE_ID)+"' AND `enable`=1 AND `support`<4")
forrincur.fetchall():
d={}
@ -397,7 +397,7 @@ class DbTransfer(object):
cur.execute("SELECT "+
','.join(keys_detect)+
" FROM relay WHERE (`source_node_id` = 0 or `source_node_id` = "+