http://v236xhqtyullodhf26szyjepvkbv6iitrhjgrqj4avaoukebkk6n6syd.onion/t/experimenting-with-tor-pluggable-transports-in-shadow/9117
You can either patch the PT to always listen on the same port and then use that value in the tgen client config , or use Rob’s python script directly in the shadow config to read the port from the PT’s stdout messages and modify the tgen config before the tgen start time.