@page "/Settings/IPXRelay" @inject IPXRelayService IPXRelayService @inject IMessageService MessageService @inject ILogger Logger @attribute [Authorize(Roles = RoleService.AdministratorRoleName)]
Use this to customize the host that is broadcasted to clients.
@code { Settings Settings = SettingService.GetSettings(); async Task Save() { try { SettingService.SaveSettings(Settings); MessageService.Success("Settings saved!"); await IPXRelayService.StopAsync(); IPXRelayService.Init(Logger); } catch (Exception ex) { MessageService.Error("An unknown error occurred."); Logger.LogError(ex, "An unknown error occurred."); } } }