From 52966ede891627face1cfe5584f9a2a852ee3fc4 Mon Sep 17 00:00:00 2001 From: Dane Everitt Date: Sat, 9 May 2020 16:26:37 -0700 Subject: [PATCH] Clean this code up, just use the updated model's FQDN; references #1931 --- app/Services/Nodes/NodeUpdateService.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/app/Services/Nodes/NodeUpdateService.php b/app/Services/Nodes/NodeUpdateService.php index 07901b28..ce9238d7 100644 --- a/app/Services/Nodes/NodeUpdateService.php +++ b/app/Services/Nodes/NodeUpdateService.php @@ -86,9 +86,7 @@ class NodeUpdateService // node doesn't actually care about this. // // @see https://github.com/pterodactyl/panel/issues/1931 - if (! empty($data['fqdn'])) { - $node->fqdn = $data['fqdn']; - } + $node->fqdn = $updated->fqdn; $this->configurationRepository->setNode($node)->update($updated); } catch (DaemonConnectionException $exception) {