[PATCH v4] treewide: Introduce 'local mode' for disconnected setups