tests: Fix tickle sniffing for IPv4
authorMartin Schwenke <martin@meltin.net>
Sat, 20 Dec 2014 08:54:13 +0000 (19:54 +1100)
committerMartin Schwenke <martin@meltin.net>
Fri, 9 Jan 2015 07:17:14 +0000 (18:17 +1100)
commit7dfcdd11e2519428facbb9c2fefd611298d909a7
tree7111645fe486f5bf0ebe77562c673622c670fb96
parent73c48fcb489b3a2ed25ebeaf50c85e17340a7dc3
tests: Fix tickle sniffing for IPv4

tcptickle_sniff_start() assumes that if $dst contains a ': then it
should use the IPv6 sniffing code.  However, $dst is a socket, so has
a trailing ":<port>".

Strip the trailing ":<port>" before checking for ':' as a marker for
an IPv6 address.

Signed-off-by: Martin Schwenke <martin@meltin.net>
Reviewed-by: Michael Adam <obnox@samba.org>
(Imported from commit 82aa6bd2f27775f3fd82931d613379d5d618ef70)
tests/complex/scripts/local.bash