diff --git a/app/Models/Server.php b/app/Models/Server.php index 655323e0c..e0665ee13 100644 --- a/app/Models/Server.php +++ b/app/Models/Server.php @@ -131,6 +131,7 @@ class Server extends Model 'servers.*', 'nodes.name as nodeName', 'locations.short as a_locationShort', + 'allocations.ip', 'allocations.ip_alias', 'allocations.port' )->join('nodes', 'servers.node', '=', 'nodes.id') diff --git a/resources/views/admin/servers/index.blade.php b/resources/views/admin/servers/index.blade.php index 54eda116e..a1bf5611a 100644 --- a/resources/views/admin/servers/index.blade.php +++ b/resources/views/admin/servers/index.blade.php @@ -46,7 +46,7 @@
{{ $server->ip_alias }}:{{ $server->port }}
@if($server->ip !== $server->ip_alias)alias@endif@if(!is_null($server->ip_alias)){{ $server->ip_alias }}@else{{ $server->ip }}@endif:{{ $server->port }}
@if(!is_null($server->ip_alias))alias@endif{{ $server->username }}
{{ $server->ip_alias }}:{{ $server->port }}
@else
No Alias Assigned
@@ -236,7 +236,7 @@
ip == $server->ip && $assignment->port == $server->port) checked="checked" @endif name="default" value="{{ $assignment->ip }}:{{ $assignment->port }}"/>
-
+
@endforeach
@@ -247,7 +247,7 @@
{{ $server->ip_alias }}:{{ $server->port }}
@if(!is_null($server->ip_alias)){{ $server->ip_alias }}@else{{ $server->ip }}@endif:{{ $server->port }}