'parse the source and target lists'

def preModule(self):

    if self.target:
        for tstr in self.target:
            targets = util.strtok(tstr, as_list=True)[0]
            for t in targets:
                try:
                    parts = t.split(':')
                    if (len(parts) == 2):
                        (ip, port) = parts
                    else:
                        (ip, port) = (t, None)
                except:
                    (ip, port) = (t, None)
                if (ip == ''):
                    ip = None
                self.targets.append((ip, port))
    if self.source:
        for sstr in self.source:
            sources = util.strtok(sstr, as_list=True)[0]
            for ip in sources:
                self.sources.append(ip)
    dshell.TCPDecoder.preModule(self)
