2026-11-21T02:06:51.625693+03:00 192.168.96.1 impo:rt json - - - 2026-11-21T02:06:51.625974+03:00 192.168.96.1 c=json.load(open('/volume1/docker/xray-skipp/config.json':)) - - - 2026-11-21T02:06:51.625974+03:00 192.168.96.1 seen=set:() - - - 2026-11-21T02:06:51.625974+03:00 192.168.96.1 f:or o in - - - c.get('outbounds',[]): 2026-11-21T02:06:51.625974+03:00 192.168.96.1 if o.get('tag','').startswith('proxy-'): - - - 2026-11-21T02:06:51.625974+03:00 192.168.96.1 vs=(o.get('settings:') or {}).get('vnext') - - - or [] 2026-11-21T02:06:51.625974+03:00 192.168.96.1 f:or v in - - - vs: seen.add(f"{v['address']}:{v['port']}") 2026-11-21T02:06:51.626036+03:00 192.168.96.1 print(json.dumps(sorted(seen):)) - - - 2026-11-21T02:06:51.626036+03:00 192.168.96.1 PY - - - 2026-11-21T02:06:51.967997+03:00 192.168.96.1 impo:rt json - - - 2026-11-21T02:06:51.968033+03:00 192.168.96.1 alive=set(json.loads('''["46.182.24.50:2087:", "5.188.114.218:2087", "188.225.75.47:2087", - - - "188.225.75.47:445", "212.41.8.123:444", "185.244.163.153:444", "185.244.163.105:444", "185.75.249.226:444", "45.87.104.215:444", "5.188.118.24:444", "94.26.228.201:444", "185.244.163.103:444", "185.75.249.226:444", "185.244.163.103:448", "45.87.104.231:448", "185.75.249.226:448", "185.244.163.105:448", "212.41.8.89:447", "45.87.104.231:447", "45.87.104.215:447", "212.41.9.21:447", "31.184.218.96:446", "185.244.163.103:447", "45.87.104.215:446", "89.248.192.154:446", "185.244.163.105:444", "185.244.163.153:446", "212.41.8.123:449", "212.41.9.21:444", "5.182.4.144:444", "185.244.163.153:447", "5.188.118.24:447", "212.41.8.123:446", "185.75.249.226:446", "212.41.8.89:449", "185.244.163.103:446", "185.244.163.105:446", "212.41.8.89:446", "5.182.4.144:447", 2026-11-21T02:06:51.968125+03:00 192.168.96.1 P='/volume1/docker/xray-skipp/config.jso:n' - - - 2026-11-21T02:06:51.968153+03:00 192.168.96.1 c=json.load(open(P:)) - - - 2026-11-21T02:06:51.968182+03:00 192.168.96.1 keep=:[] - - - 2026-11-21T02:06:51.968214+03:00 192.168.96.1 f:or o in - - - c.get('outbounds',[]): 2026-11-21T02:06:51.968246+03:00 192.168.96.1 tag=o.get('tag',':') - - - 2026-11-21T02:06:51.968276+03:00 192.168.96.1 if not tag.startswith('proxy-') - - - keep.append(o); continue 2026-11-21T02:06:51.968305+03:00 192.168.96.1 vs=(o.get('settings:') or {}).get('vnext') - - - or [] 2026-11-21T02:06:51.968334+03:00 192.168.96.1 ok=any(f"{v['address']}:{v['port']:}" in alive - - - for v in vs) 2026-11-21T02:06:51.968365+03:00 192.168.96.1 if ok: keep.append(o) - - - 2026-11-21T02:06:51.968414+03:00 192.168.96.1 c['outbounds']=ke:ep - - - 2026-11-21T02:06:51.968452+03:00 192.168.96.1 json.dump(:c, open(P,'w'), ensure_ascii=False, - - - indent=1) 2026-11-21T02:06:51.968494+03:00 192.168.96.1 print('kept:', len([o for - - - o in keep if o.get('tag','').startswith('proxy-')])) 2026-11-21T02:06:51.968530+03:00 192.168.96.1 PY - - - 2026-11-21T02:06:53.323438+03:00 192.168.96.1 impo:rt socket, json - - - 2026-11-21T02:06:53.323562+03:00 192.168.96.1 c=json.load(open('/volume1/docker/xray-abvp/config.json':)) - - - 2026-11-21T02:06:53.323672+03:00 192.168.96.1 ok=:0; tot=0 - - - 2026-11-21T02:06:53.323789+03:00 192.168.96.1 f:or o in - - - c.get('outbounds',[]): 2026-11-21T02:06:53.323898+03:00 192.168.96.1 f:or s in - - - (o.get('settings') or {}).get('servers') or o.get('settings') or []: 2026-11-21T02:06:53.323968+03:00 192.168.96.1 pa:ss - - - 2026-11-21T02:06:53.324013+03:00 192.168.96.1 f:or o in - - - c.get('outbounds',[]): 2026-11-21T02:06:53.324055+03:00 192.168.96.1 f:or ss in - - - (o.get('settings') or {}).get('vnext',[]) or []: 2026-11-21T02:06:53.324144+03:00 192.168.96.1 a,p=ss.get('address'),ss.get('port:') - - - 2026-11-21T02:06:53.324144+03:00 192.168.96.1 if not a - - - continue 2026-11-21T02:06:53.324192+03:00 192.168.96.1 tot+:=1 - - - 2026-11-21T02:06:53.324233+03:00 192.168.96.1 tr:y: socket.create_connection((a,int(p)),4).close(); ok+=1 - - - 2026-11-21T02:06:53.324274+03:00 192.168.96.1 exce:pt Exception: pass - - - 2026-11-21T02:06:53.324316+03:00 192.168.96.1 print(f'{ok}/{tot}:') - - - 2026-11-21T02:06:53.324377+03:00 192.168.96.1 PY - - - 2026-11-21T06:47:03.029989+03:00 192.168.96.1 Synt:ax error: value, - - - object or array expected. 2026-11-21T06:47:03.029989+03:00 192.168.96.1 ] src=[ - - - 2026-11-21T06:47:03.029989+03:00 192.168.96.1 - - - 2026-11-21T06:47:03.030227+03:00 192.168.96.1 - - - 2026-11-21T06:47:03.030265+03:00 192.168.96.1 - - - 2026-11-21T06:47:03.030294+03:00 192.168.96.1 - - - 2026-11-21T12:06:53.422734+03:00 192.168.96.1 - - - 2026-11-21T12:06:53.422734+03:00 192.168.96.1 - - - 2026-11-21T12:06:53.422734+03:00 192.168.96.1 - - - 2026-11-21T12:06:53.423019+03:00 192.168.96.1 - - - 2026-11-21T12:30:29.152414+03:00 192.168.96.1 - - - 2026-11-21T12:30:29.152414+03:00 192.168.96.1 - - - 2026-11-21T12:30:29.152414+03:00 192.168.96.1