Skip to content
This repository was archived by the owner on Jan 17, 2021. It is now read-only.

Commit fda014c

Browse files
committed
Fix sshcode only accepting ip addresses
1 parent ff782b1 commit fda014c

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

sshcode.go

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -360,9 +360,6 @@ func parseIP(host string) (ip string, additionalFlags string, err error) {
360360
instance := strings.TrimPrefix(host, "gcp:")
361361
return parseGCPSSHCmd(instance)
362362
default:
363-
if net.ParseIP(host) == nil {
364-
return "", "", xerrors.New("host argument is not a valid IP address")
365-
}
366363
return host, "", nil
367364
}
368365
}

0 commit comments

Comments
 (0)