File tree 2 files changed +6
-2
lines changed
2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -10,7 +10,6 @@ export type savedParams = {
10
10
bot ?: string
11
11
}
12
12
export interface InterfaceCLI extends commander . Command {
13
-
14
13
host ?: string
15
14
port ?: number
16
15
tls ?: boolean
@@ -23,6 +22,7 @@ export interface InterfaceCLI extends commander.Command {
23
22
retry ?: number
24
23
passivePort ?: number
25
24
ipv6 ?: boolean
25
+ throttle ?: number
26
26
randomize ?: boolean
27
27
botNameMatch ?: boolean
28
28
queue ?: RegExp
Original file line number Diff line number Diff line change @@ -80,7 +80,11 @@ export default class XdccJSbin extends Profiles {
80
80
if ( start > 0 ) {
81
81
this . clearMSG ( ) ;
82
82
}
83
- const job = await xdccJS . download ( bot , download , this . program . ipv6 ) ;
83
+ const job = await xdccJS . download (
84
+ bot ,
85
+ download ,
86
+ { ipv6 : this . program . ipv6 , throttle : this . program . throttle } ,
87
+ ) ;
84
88
if ( ! this . program . path ) {
85
89
job . on ( 'pipe' , ( stream ) => {
86
90
stream . pipe ( process . stdout ) ;
You can’t perform that action at this time.
0 commit comments