Rely on the test connection to the MySQL instance rather than trying to validate the host manually; closes #2311; closes #2282

This commit is contained in:
Dane Everitt 2020-09-10 20:09:07 -07:00
parent d86d0fedb4
commit 1077504c02
No known key found for this signature in database
GPG key ID: EEA66103B3D71F53
2 changed files with 0 additions and 63 deletions

View file

@ -2,8 +2,6 @@
namespace Pterodactyl\Models;
use Pterodactyl\Rules\ResolvesToIPAddress;
class DatabaseHost extends Model
{
/**
@ -60,18 +58,6 @@ class DatabaseHost extends Model
'node_id' => 'sometimes|nullable|integer|exists:nodes,id',
];
/**
* @return array
*/
public static function getRules()
{
$rules = parent::getRules();
$rules['host'] = array_merge($rules['host'], [ new ResolvesToIPAddress() ]);
return $rules;
}
/**
* Gets the node associated with a database host.
*