Add Validation for targetHost
This commit is contained in:
@@ -6,6 +6,7 @@ function Add-ZertoPeerSite {
|
|||||||
Mandatory = $true,
|
Mandatory = $true,
|
||||||
HelpMessage = "Target Hostname or IP address to pair the localsite to."
|
HelpMessage = "Target Hostname or IP address to pair the localsite to."
|
||||||
)]
|
)]
|
||||||
|
[ValidateScript( {$_ -match [IPAddress]$_ } )]
|
||||||
[string]$targetHost,
|
[string]$targetHost,
|
||||||
[Parameter(
|
[Parameter(
|
||||||
HelpMessage = "Target communication port. Default is 9081"
|
HelpMessage = "Target communication port. Default is 9081"
|
||||||
|
|||||||
Reference in New Issue
Block a user