public void MakeAccessible(bool passive) { if (OsInfo.IsWindows) { if (_runtimeInfo.IsAdmin) { _firewallAdapter.MakeAccessible(); _sslAdapter.Register(); } else if (!passive) { throw new RemoteAccessException("Failed to register URLs for Gamearr. Gamearr will not be accessible remotely"); } } _urlAclAdapter.ConfigureUrls(); }
public void StartServer() { if (OsInfo.IsWindows) { if (_runtimeInfo.IsAdmin) { _firewallAdapter.MakeAccessible(); _sslAdapter.Register(); } } _urlAclAdapter.ConfigureUrls(); _logger.Info("Listening on the following URLs:"); foreach (var url in _urlAclAdapter.Urls) { _logger.Info(" {0}", url); } _owinApp = _owinAppFactory.CreateApp(_urlAclAdapter.Urls); }