FAForever / server

The servercode for the Forged Alliance Forever lobby
http://www.faforever.com
GNU General Public License v3.0
66 stars 63 forks source link

Configure server contexts through yaml config #945

Closed Askaholic closed 1 year ago

Askaholic commented 1 year ago

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.