fix: properly match main type
parent
f64c362c57
commit
418e7cc7f9
|
@ -89,6 +89,9 @@ class ShadowServerFetcher():
|
|||
prefix = type_content.split('.')[0]
|
||||
config['name'] = '{}-{}'.format(prefix, '_'.join(type_details))
|
||||
|
||||
if isinstance(type_details, str):
|
||||
main_type = type_details
|
||||
else:
|
||||
main_type = type_details[0]
|
||||
if main_type not in self.known_list_types:
|
||||
self.logger.warning(f'Unknown type: {main_type}. Please update the config creator script.')
|
||||
|
|
Loading…
Reference in New Issue