This enables us to set up the lobby ports using the yaml config file. It's not entirely dynamic in that changing the config will still require a server restart to take effect (mostly because it was going to be a little complicated to implement and I felt like it wasn't worth it). This will let us turn off the legacy QDataStream socket whenever we feel like it's time without needing to make a code change.
I also have some plans for a subsequent PR to add a 'v2' port that will be enabled in dev/test configs but not in prod, so we can start deploying some breaking protocol changes running side by side with the stable version to develop against.
This enables us to set up the lobby ports using the yaml config file. It's not entirely dynamic in that changing the config will still require a server restart to take effect (mostly because it was going to be a little complicated to implement and I felt like it wasn't worth it). This will let us turn off the legacy QDataStream socket whenever we feel like it's time without needing to make a code change.
I also have some plans for a subsequent PR to add a 'v2' port that will be enabled in dev/test configs but not in prod, so we can start deploying some breaking protocol changes running side by side with the stable version to develop against.