"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "ospd/network.py" between
ospd-2.0.0.tar.gz and ospd-2.0.1.tar.gz

About: OSPd is a base class for scanner wrappers which share the same communication protocol: OSP (OpenVAS Scanner Protocol).

network.py  (ospd-2.0.0):network.py  (ospd-2.0.1)
skipping to change at line 267 skipping to change at line 267
# Is it a hostname ? # Is it a hostname ?
if not new_list: if not new_list:
new_list = target_to_hostname(target) new_list = target_to_hostname(target)
return new_list return new_list
def target_str_to_list(target_str: str) -> Optional[List]: def target_str_to_list(target_str: str) -> Optional[List]:
""" Parses a targets string into a list of individual targets. """ """ Parses a targets string into a list of individual targets. """
new_list = list() new_list = list()
if not target_str:
return None
for target in target_str.split(','): for target in target_str.split(','):
target = target.strip() target = target.strip()
target_list = target_to_list(target) target_list = target_to_list(target)
if target_list: if target_list:
new_list.extend(target_list) new_list.extend(target_list)
else: else:
__LOGGER.info("%s: Invalid target value", target) __LOGGER.info("%s: Invalid target value", target)
return None return None
 End of changes. 1 change blocks. 
0 lines changed or deleted 3 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)