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:
parent
d86d0fedb4
commit
1077504c02
2 changed files with 0 additions and 63 deletions
|
@ -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.
|
||||
*
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue