Skip to content

cowrie/wardenfiler: Replace lstrip with startswith and slicing

Pavel Valach requested to merge cowrie_lstrip_fix into master

str.lstrip("::ffff:") takes any character from the set {:,f} and it removes these characters from the beginning of the sequence.

So I replaced this with startswith, which will only recognize the whole sequence.

Merge request reports

Loading