Skip to content

Commit

Permalink
dealing with special situations
Browse files Browse the repository at this point in the history
  • Loading branch information
Toperlock committed Jan 26, 2024
1 parent 1682e40 commit f549d48
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion parsers/ss.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,11 @@ def parse(data):
node['multiplex']['min_streams'] = int(smux_dict['min-streams'])
if smux_dict.get('padding') == 'True':
node['multiplex']['padding'] = True
param = param.split('/')[0].split('?')[0]
try: #fuck
param = param.split('?')[0]
matcher = tool.urlDecode(param) #保留'/'测试能不能解码
except:
param = param.split('/')[0].split('?')[0] #不能解码说明'/'不是base64内容
if param.find('@') > -1:
matcher = re.match(r'(.*?)@(.*):(.*)', param)
if matcher:
Expand Down

0 comments on commit f549d48

Please sign in to comment.