Unverified Commit 52f71f54 authored by liuzhe-lz's avatar liuzhe-lz Committed by GitHub
Browse files

allow host name as remote ip (#2550)


Co-authored-by: default avatarliuzhe <zhe.liu@microsoft.com>
parent 54496c29
......@@ -528,9 +528,9 @@ Required in remote mode. A list of key-value pairs with the following keys.
#### ip
Required. IP address that is accessible from the current machine.
Required. IP address or host name that is accessible from the current machine.
The IP address of remote machine.
The IP address or host name of remote machine.
#### port
......
......@@ -10,7 +10,7 @@ export namespace ValidationSchemas {
body: {
machine_list: joi.array().items(joi.object({ // eslint-disable-line @typescript-eslint/camelcase
username: joi.string().required(),
ip: joi.string().ip().required(),
ip: joi.string().hostname().required(),
port: joi.number().min(1).max(65535).required(),
passwd: joi.string(),
sshKeyPath: joi.string(),
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment