Fixed pipe connection bans

Fixes #1707