Correctly set the subprotocol based on the config