Skip to content

Commit

Permalink
🎨 Modify the protocol name.
Browse files Browse the repository at this point in the history
  • Loading branch information
AirportR committed Mar 1, 2024
1 parent f792cb8 commit bf8cfb5
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions utils/cleaner.py
Original file line number Diff line number Diff line change
Expand Up @@ -1410,14 +1410,17 @@ def get_http_latency(data: list):
def convert_proxy_typename(self):
if '类型' in self.data:
new_type = []
type1 = self.data['类型']
type1: List[str] = self.data['类型']
if not isinstance(type1, list):
return
for t in type1:
if t == 'ss':
tt = t.lower()
if tt == 'ss':
new_type.append("Shadowsocks")
elif t == "ssr":
elif tt == "ssr":
new_type.append("ShadowsocksR")
elif tt == 'tuic':
new_type.append("TUIC")
else:
new_type.append(t.capitalize())
self.data['类型'] = new_type
Expand Down

0 comments on commit bf8cfb5

Please sign in to comment.