From 7e0cbe8db18d7f2ec5ec5308610b514bc647479e Mon Sep 17 00:00:00 2001 From: Dane Everitt Date: Thu, 27 Apr 2017 22:55:42 -0400 Subject: [PATCH] Pass behind_proxy properly. --- app/Http/Controllers/Admin/NodesController.php | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/app/Http/Controllers/Admin/NodesController.php b/app/Http/Controllers/Admin/NodesController.php index 653992ce9..62f8e205c 100644 --- a/app/Http/Controllers/Admin/NodesController.php +++ b/app/Http/Controllers/Admin/NodesController.php @@ -84,11 +84,12 @@ class NodesController extends Controller $repo = new NodeRepository; $node = $repo->create(array_merge( $request->only([ - 'public', 'disk_overallocate', 'memory_overallocate', + 'public', 'disk_overallocate', + 'memory_overallocate', 'behind_proxy', ]), $request->intersect([ 'name', 'location_id', 'fqdn', - 'scheme', 'memory', 'disk', 'behind_proxy', + 'scheme', 'memory', 'disk', 'daemonBase', 'daemonSFTP', 'daemonListen', ]) )); @@ -215,10 +216,11 @@ class NodesController extends Controller try { $node = $repo->update($id, array_merge( $request->only([ - 'public', 'disk_overallocate', 'memory_overallocate', + 'public', 'disk_overallocate', + 'memory_overallocate', 'behind_proxy', ]), $request->intersect([ - 'name', 'location_id', 'fqdn', 'behind_proxy', + 'name', 'location_id', 'fqdn', 'scheme', 'memory', 'disk', 'upload_size', 'reset_secret', 'daemonSFTP', 'daemonListen', ])