@@ -48,8 +48,8 @@ func init() {
48
48
flag .Int64Var (& randomIPsCount , "n" , - 1 , "generate N random WAN IPs" )
49
49
flag .StringVar (& cidrNetwork , "net" , "" , "Network in CIDR notation to scan in random order" )
50
50
flag .StringVar (& ipList , "list" , "" , "IP/networks list (CIDR) to scan in random order" )
51
- flag .IntVar (& scanWorkers , "w" , 64 , "workers count" )
52
- flag .IntVar (& scanWorkers , "workers" , 64 , "workers count" )
51
+ flag .IntVar (& scanWorkers , "w" , 4096 , "workers count" )
52
+ flag .IntVar (& scanWorkers , "workers" , 4096 , "workers count" )
53
53
flag .DurationVar (& connTimeout , "t" , 700 * time .Millisecond , "scan connect timeout" )
54
54
flag .DurationVar (& connTimeout , "timeout" , 700 * time .Millisecond , "scan connect timeout" )
55
55
@@ -145,18 +145,20 @@ func process(processor *services.Processor) {
145
145
146
146
utils .EPrint ("[i] callback set" )
147
147
if ! callbackE {
148
- utils .EPrint (", err" )
148
+ utils .EPrint (" [ err] " )
149
149
cbFlags = cbFlags .Set (utils .ERR )
150
150
}
151
151
if ! callbackW {
152
- utils .EPrint (", warn" )
152
+ utils .EPrint (" [ warn] " )
153
153
cbFlags = cbFlags .Set (utils .WARN )
154
154
}
155
155
if ! callbackI {
156
- utils .EPrint (", info" )
156
+ utils .EPrint (" [ info] " )
157
157
cbFlags = cbFlags .Set (utils .INFO )
158
158
}
159
159
utils .EPrintln ()
160
+ utils .EPrintln (" cb concurrency:" , callbackConcurrency )
161
+ utils .EPrintln (" cb timeout:" , callbackTimeout )
160
162
161
163
utils .EPrintln ("=========================" )
162
164
sp .Start ()
0 commit comments