Fix bridge ip comparison

Fixes #5423.

Docker-DCO-1.1-Signed-off-by: Tibor Vass <teabee89@gmail.com> (github: tiborvass)