Skip to content

Commit

Permalink
v1.20 patch 1
Browse files Browse the repository at this point in the history
  • Loading branch information
StupidRepo committed Jul 20, 2023
1 parent 00937bd commit 9e5a8f8
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/com/stupidrepo/mcscanner/MCScanner.java
Original file line number Diff line number Diff line change
Expand Up @@ -152,11 +152,12 @@ public void windowClosing(java.awt.event.WindowEvent windowEvent) {
offsetK = k;
}
for (int l = 0; l <= (255-thisOffsetL); ++l) {
String ip = "...";
if(stopping) {
break;
} else {
offsetL = l;
String ip = i + "." + j + "." + k + "." + l;
ip = i + "." + j + "." + k + "." + l;

ScannerThread scannerThread = new ScannerThread(ip, port, timeout, databaseHandler);
Thread scanThread = new Thread(scannerThread);
Expand All @@ -169,7 +170,7 @@ public void windowClosing(java.awt.event.WindowEvent windowEvent) {
try {
nextThread.join();
++scanned;
scannedLabel.setText("Scanned: " + scanned);
scannedLabel.setText("Scanned: " + scanned + " (" + ip + ")");
} catch (InterruptedException timeout2) {
// Timed out or smth
}
Expand Down

0 comments on commit 9e5a8f8

Please sign in to comment.