How to disable relay after once enabled

Options
Hi, I have two server browsers, LAN and one based on relay server, the problem is if I run "BoltLauncher.SetUdpPlatform(new PhotonPlatform());" once, relay is always enabled, is there a way to disable it without game restart?

Comments

  • By looking at code it seems that calling StartServer/StartClient again will use current UdpPlatform.
    Have you tried calling:
    1. "BoltLauncher.SetUdpPlatform(new PhotonPlatform());"
    2. ...
    3. "BoltLauncher.SetUdpPlatform(new DotNetPlatform());" - or appropriate according to platform
    4. "BoltLauncher.StartServer/StartClient "
  • stanchion
    Options
    Just don't call that, or shut down Bolt and set the udp platform again.