start browser discovery code for Windows

Former-commit-id: f3bf7a928f
Former-commit-id: 5e0ff03543e9ed7ad2116f2cce86b97afc27080e
This commit is contained in:
idk
2022-08-27 21:21:19 -04:00
parent b933ed42c0
commit 1278fdd6e8

View File

@ -60,7 +60,7 @@ public class I2PGenericUnsafeBrowser {
if (line.contains("(Default")){ if (line.contains("(Default")){
String[] splitLine = line.split(" "); String[] splitLine = line.split(" ");
kb.close(); kb.close();
return splitLine[splitLine.length-2]; return splitLine[splitLine.length-1].replace("%", "").replaceAll("\\s+$", "");
} }
} }
// Match wasn't found, still need to close Scanner // Match wasn't found, still need to close Scanner