Skip to content

Commit

Permalink
Merge pull request #165 from mlmmlm/backend
Browse files Browse the repository at this point in the history
Backend
  • Loading branch information
AirportR authored Feb 21, 2024
2 parents eda338e + a1ba837 commit 0f004d3
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion utils/backend.py
Original file line number Diff line number Diff line change
Expand Up @@ -658,10 +658,24 @@ async def topo(self):
print(counter0)
ipstack_lists = list(ipstack_list.values())
ipclus = list(ipclu.values())
hosts = list(inboundinfo.keys())
for i, t in enumerate(hosts):
if ipstack_lists[i] == "N/A" and t:
if ":" in t:
ipstack_lists[i] = "6"
elif "." in t:
ipstack_lists[i] = "4"
else:
pass
elif ipstack_lists[i] == "4" and ":" in t:
ipstack_lists[i] = "46"
elif ipstack_lists[i] == "6" and "." in t:
ipstack_lists[i] = "46"
else:
pass
info['栈'] = ipstack_lists
if nodename and inboundinfo and cl:
# 拿地址,已经转换了域名为ip,hosts变量去除了N/A
hosts = list(inboundinfo.keys())

if _data:
code = []
Expand Down

0 comments on commit 0f004d3

Please sign in to comment.