Fix dead connection checking in CI by filtering out internal connections.