File tree Expand file tree Collapse file tree 10 files changed +43
-19
lines changed Expand file tree Collapse file tree 10 files changed +43
-19
lines changed Original file line number Diff line number Diff line change @@ -220,10 +220,18 @@ function getAccessOption(options: FtpOptions): ftp.AccessOptions {
220
220
221
221
const hostName : string = options . serverEndpointUrl . hostname ! ;
222
222
const portStr : string = options . serverEndpointUrl . port ! ;
223
- let port : number = 21 ;
223
+ let port : number ;
224
+
224
225
if ( portStr ) {
225
226
// port not explicitly specified, use default
226
227
port = parseInt ( portStr ) ;
228
+ } else if ( secure === "implicit" ) {
229
+ // port for implicit FTPS
230
+ port = 990 ;
231
+ }
232
+ else {
233
+ // port for FTP and explicit FTPS
234
+ port = 21 ;
227
235
}
228
236
229
237
console . log ( tl . loc ( "ConnectPort" , hostName , port ) ) ;
Original file line number Diff line number Diff line change 18
18
"demands" : [],
19
19
"version" : {
20
20
"Major" : 2 ,
21
- "Minor" : 246 ,
21
+ "Minor" : 248 ,
22
22
"Patch" : 0
23
23
},
24
24
"minimumAgentVersion" : " 2.182.1" ,
Original file line number Diff line number Diff line change 18
18
"demands" : [],
19
19
"version" : {
20
20
"Major" : 2 ,
21
- "Minor" : 246 ,
21
+ "Minor" : 248 ,
22
22
"Patch" : 0
23
23
},
24
24
"minimumAgentVersion" : " 2.182.1" ,
Original file line number Diff line number Diff line change 1
- Default|2.246 .0
2
- Node20-225|2.246 .1
1
+ Default|2.248 .0
2
+ Node20-225|2.248 .1
Original file line number Diff line number Diff line change @@ -220,10 +220,18 @@ function getAccessOption(options: FtpOptions): ftp.AccessOptions {
220
220
221
221
const hostName : string = options . serverEndpointUrl . hostname ! ;
222
222
const portStr : string = options . serverEndpointUrl . port ! ;
223
- let port : number = 21 ;
223
+ let port : number ;
224
+
224
225
if ( portStr ) {
225
226
// port not explicitly specified, use default
226
227
port = parseInt ( portStr ) ;
228
+ } else if ( secure === "implicit" ) {
229
+ // port for implicit FTPS
230
+ port = 990 ;
231
+ }
232
+ else {
233
+ // port for FTP and explicit FTPS
234
+ port = 21 ;
227
235
}
228
236
229
237
console . log ( tl . loc ( "ConnectPort" , hostName , port ) ) ;
Original file line number Diff line number Diff line change 18
18
"demands" : [],
19
19
"version" : {
20
20
"Major" : 2 ,
21
- "Minor" : 246 ,
21
+ "Minor" : 248 ,
22
22
"Patch" : 0
23
23
},
24
24
"minimumAgentVersion" : " 2.182.1" ,
216
216
"UploadFailed" : " Ftp Upload failed"
217
217
},
218
218
"_buildConfigMapping" : {
219
- "Default" : " 2.246 .0" ,
220
- "Node20-225" : " 2.246 .1"
219
+ "Default" : " 2.248 .0" ,
220
+ "Node20-225" : " 2.248 .1"
221
221
}
222
222
}
Original file line number Diff line number Diff line change 18
18
"demands" : [],
19
19
"version" : {
20
20
"Major" : 2 ,
21
- "Minor" : 246 ,
21
+ "Minor" : 248 ,
22
22
"Patch" : 0
23
23
},
24
24
"minimumAgentVersion" : " 2.182.1" ,
216
216
"UploadFailed" : " ms-resource:loc.messages.UploadFailed"
217
217
},
218
218
"_buildConfigMapping" : {
219
- "Default" : " 2.246 .0" ,
220
- "Node20-225" : " 2.246 .1"
219
+ "Default" : " 2.248 .0" ,
220
+ "Node20-225" : " 2.248 .1"
221
221
}
222
222
}
Original file line number Diff line number Diff line change @@ -220,10 +220,18 @@ function getAccessOption(options: FtpOptions): ftp.AccessOptions {
220
220
221
221
const hostName : string = options . serverEndpointUrl . hostname ! ;
222
222
const portStr : string = options . serverEndpointUrl . port ! ;
223
- let port : number = 21 ;
223
+ let port : number ;
224
+
224
225
if ( portStr ) {
225
226
// port not explicitly specified, use default
226
227
port = parseInt ( portStr ) ;
228
+ } else if ( secure === "implicit" ) {
229
+ // port for implicit FTPS
230
+ port = 990 ;
231
+ }
232
+ else {
233
+ // port for FTP and explicit FTPS
234
+ port = 21 ;
227
235
}
228
236
229
237
console . log ( tl . loc ( "ConnectPort" , hostName , port ) ) ;
Original file line number Diff line number Diff line change 18
18
"demands" : [],
19
19
"version" : {
20
20
"Major" : 2 ,
21
- "Minor" : 246 ,
21
+ "Minor" : 248 ,
22
22
"Patch" : 1
23
23
},
24
24
"minimumAgentVersion" : " 2.182.1" ,
220
220
"UploadFailed" : " Ftp Upload failed"
221
221
},
222
222
"_buildConfigMapping" : {
223
- "Default" : " 2.246 .0" ,
224
- "Node20-225" : " 2.246 .1"
223
+ "Default" : " 2.248 .0" ,
224
+ "Node20-225" : " 2.248 .1"
225
225
}
226
226
}
Original file line number Diff line number Diff line change 18
18
"demands" : [],
19
19
"version" : {
20
20
"Major" : 2 ,
21
- "Minor" : 246 ,
21
+ "Minor" : 248 ,
22
22
"Patch" : 1
23
23
},
24
24
"minimumAgentVersion" : " 2.182.1" ,
220
220
"UploadFailed" : " ms-resource:loc.messages.UploadFailed"
221
221
},
222
222
"_buildConfigMapping" : {
223
- "Default" : " 2.246 .0" ,
224
- "Node20-225" : " 2.246 .1"
223
+ "Default" : " 2.248 .0" ,
224
+ "Node20-225" : " 2.248 .1"
225
225
}
226
226
}
You can’t perform that action at this time.
0 commit comments