The current handling of (multiple) --local in combination with <connection> block seems very... "grown from historic code". TODO: when multisockets is in, revisit if this can be made cleaner, with less copying-around and no arrays in places where only one is allowed anyway.