We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 96ba6da commit dbd5937Copy full SHA for dbd5937
lib/msf/core/auxiliary/scanner.rb
@@ -59,9 +59,15 @@ def run
59
@tl = []
60
61
#
62
- # Sanity check threading on different platforms
+ # Sanity check threading given different conditions
63
64
65
+ if datastore['CPORT'].to_i != 0 && threads_max > 1
66
+ print_error("Warning: A maximum of one thread is possible when a source port is set (CPORT)")
67
+ print_error("Thread count has been adjusted to 1")
68
+ threads_max = 1
69
+ end
70
+
71
if(Rex::Compat.is_windows)
72
if(threads_max > 16)
73
print_error("Warning: The Windows platform cannot reliably support more than 16 threads")
0 commit comments