forceFill($data)->save(); $updated = $node->refresh(); try { $daemon->fqdn = $updated->fqdn; Daemon::node($daemon)->update($updated); } catch (DaemonConnectionException $daemonConnectionException) { Log::warning($daemonConnectionException->getMessage(), ['exception' => $daemonConnectionException, 'node_id' => $node->id]); // Never actually throw these exceptions up the stack. If we were able to change the settings // but something went wrong with Wings we just want to store the update and let the user manually // make changes as needed. // // This avoids issues with proxies such as Cloudflare which will see Wings as offline and then // inject their own response pages, causing this logic to get fucked up. // // @see https://github.com/pterodactyl/panel/issues/2712 return [$updated, true]; } return [$updated, false]; }); if ($exception) { throw new ConfigurationNotPersistedException(trans('exceptions.node.daemon_off_config_updated')); } return $updated; } }