mirror of
https://github.com/RaidMax/IW4M-Admin.git
synced 2025-06-10 15:20:48 -05:00
support hostnames for server config
This commit is contained in:
@ -10,10 +10,6 @@ namespace SharedLibraryCore.Configuration.Validation
|
||||
{
|
||||
public ServerConfigurationValidator()
|
||||
{
|
||||
RuleFor(_server => _server.IPAddress)
|
||||
.NotEmpty()
|
||||
.Must(_address => IPAddress.TryParse(_address, out _));
|
||||
|
||||
RuleFor(_server => _server.Port)
|
||||
.InclusiveBetween(1, ushort.MaxValue);
|
||||
|
||||
|
Reference in New Issue
Block a user