Update target host validation

This commit is contained in:
Wes Carroll
2020-08-20 12:29:40 -04:00
parent cb528df3d4
commit ced5671ab2
2 changed files with 5 additions and 10 deletions
+1 -1
View File
@@ -6,7 +6,7 @@ function Add-ZertoPeerSite {
Mandatory,
HelpMessage = "Target Hostname or IP address to pair the localsite to."
)]
[ValidateScript( { $_ -match [IPAddress]$_ } )]
[ValidateNotNullOrEmpty()]
[string]$targetHost,
[Parameter(
HelpMessage = "Target communication port. Default is 9081"