|
1 | 1 | import{lookup}from"dns"
|
2 | 2 | importipRangeCheckfrom"ip-range-check"
|
3 |
| -import{ssh}from"node-forge" |
4 | 3 | import*asosfrom"os"
|
5 | 4 | importurlfrom"url"
|
6 | 5 | import{promisify}from"util"
|
@@ -31,9 +30,9 @@ export function parseRemoteAuthority(authority: string): AuthorityParts | null {
|
31 | 30 | constauthorityParts=authority.split("@")
|
32 | 31 | letcontainerNameHex=undefined
|
33 | 32 | letsshAuthority
|
34 |
| -if(authorityParts.length==1){ |
| 33 | +if(authorityParts.length===1){ |
35 | 34 | sshAuthority=authorityParts[0]
|
36 |
| -}elseif(authorityParts.length==2&&authorityParts[0].includes("attached-container+")){ |
| 35 | +}elseif(authorityParts.length===2&&authorityParts[0].includes("attached-container+")){ |
37 | 36 | sshAuthority=authorityParts[1]
|
38 | 37 | containerNameHex=authorityParts[0].split("+")[1]
|
39 | 38 | }else{
|
|