Compare commits

...

5 Commits

Author SHA1 Message Date
Zlatin Balevsky
c11d81c6c3 Release 0.6.9 2020-02-16 16:33:33 +00:00
Zlatin Balevsky
ee5e90c4ab ignore events from old persister service, prevents duplicate entries during migration #35 2020-02-14 18:20:39 +00:00
Zlatin Balevsky
64d2a87d26 more occurrences of SharedFile::getInfoHash #35 2020-02-14 17:53:09 +00:00
Zlatin Balevsky
f0304dbe7d fix copy-hash-to-clipboard #35 2020-02-14 16:14:36 +00:00
Zlatin Balevsky
bdad8d9309 make extended signatures mandatory 2020-02-14 15:34:21 +00:00
7 changed files with 11 additions and 7 deletions

View File

@@ -32,7 +32,7 @@ import com.muwire.core.UILoadedEvent
import com.muwire.core.files.AllFilesLoadedEvent
class CliLanterna {
private static final String MW_VERSION = "0.6.8"
private static final String MW_VERSION = "0.6.9"
private static volatile Core core

View File

@@ -3,6 +3,7 @@ package com.muwire.clilanterna
import com.googlecode.lanterna.gui2.TextGUIThread
import com.googlecode.lanterna.gui2.table.TableModel
import com.muwire.core.Core
import com.muwire.core.InfoHash
import com.muwire.core.SharedFile
import com.muwire.core.files.AllFilesLoadedEvent
import com.muwire.core.files.DirectoryWatchedEvent
@@ -72,7 +73,7 @@ class FilesModel {
sharedFiles.each {
long size = it.getCachedLength()
boolean comment = it.comment != null
boolean certified = core.certificateManager.hasLocalCertificate(it.getInfoHash())
boolean certified = core.certificateManager.hasLocalCertificate(new InfoHash(it.getRoot()))
String hits = String.valueOf(it.getHits())
String downloaders = String.valueOf(it.getDownloaders().size())
model.addRow(new SharedFileWrapper(it), DataHelper.formatSize2(size, false)+"B", comment, certified, hits, downloaders)

View File

@@ -469,7 +469,7 @@ public class Core {
}
}
Core core = new Core(props, home, "0.6.8")
Core core = new Core(props, home, "0.6.9")
core.startServices()
// ... at the end, sleep or execute script

View File

@@ -255,7 +255,6 @@ abstract class Connection implements Closeable {
return
}
// TODO: make this mandatory at some point
byte[] sig2 = null
long queryTime = 0
if (search.sig2 != null) {
@@ -278,8 +277,10 @@ abstract class Connection implements Closeable {
return
}
}
} else
} else {
log.info("no extended signature in query")
return
}
SearchEvent searchEvent = new SearchEvent(searchTerms : search.keywords,
searchHash : infohash,

View File

@@ -1,5 +1,5 @@
group = com.muwire
version = 0.6.8
version = 0.6.9
i2pVersion = 0.9.44
groovyVersion = 2.4.15
slf4jVersion = 1.7.25

View File

@@ -363,6 +363,8 @@ class MainFrameModel {
}
void onFileLoadedEvent(FileLoadedEvent e) {
if (e.source == "PersisterService")
return
runInsideUIAsync {
shared << e.loadedFile
loadedFiles = shared.size()

View File

@@ -912,7 +912,7 @@ class MainFrameView {
String roots = ""
for (Iterator<SharedFile> iterator = selectedFiles.iterator(); iterator.hasNext(); ) {
SharedFile selected = iterator.next()
String root = Base64.encode(selected.infoHash.getRoot())
String root = Base64.encode(selected.getRoot())
roots += root
if (iterator.hasNext())
roots += "\n"