Skip to content

Commit

Permalink
fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
Ghost-chu committed Oct 18, 2024
1 parent 69edf66 commit 800b5a8
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 5 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

<groupId>com.ghostchu.peerbanhelper</groupId>
<artifactId>BiglyBT-PBH-Plugin</artifactId>
<version>1.2.5</version>
<version>1.2.6</version>
<!-- <packaging>takari-jar</packaging>-->
<packaging>jar</packaging>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ public void unload() throws PluginException {
if (webContainer != null) {
webContainer.stop();
}
if(clientIDGeneratorOriginal != null){
if (clientIDGeneratorOriginal != null) {
ClientIDManagerImpl.getSingleton().setGenerator(clientIDGeneratorOriginal, true);
}
}
Expand Down Expand Up @@ -281,9 +281,9 @@ private void handleBanListApplied(Context context) throws IPFilterException {
}

public ConnectorData getConnectorData() {
if(useClientIdModifier) {
if (useClientIdModifier) {
return connectorData;
}else{
} else {
return null;
}
}
Expand Down Expand Up @@ -510,6 +510,11 @@ private PeerRecord getPeerRecord(Peer peer) {
}
if (peer.getIp().endsWith(".i2p") || peer.getIp().endsWith(".onion") || peer.getIp().endsWith(".tor"))
return null;
com.biglybt.pif.messaging.Message[] messages = new Message[0];
try {
messages = peer.getSupportedMessages();
} catch (NullPointerException ignored) {
}
return new PeerRecord(
peer.isMyPeer(),
peer.getState(),
Expand Down Expand Up @@ -537,7 +542,7 @@ private PeerRecord getPeerRecord(Peer peer) {
peer.supportsMessaging(),
peer.isPriorityConnection(),
peer.getHandshakeReservedBytes(),
Arrays.stream(peer.getSupportedMessages()).map(Message::getID).collect(Collectors.toList())
Arrays.stream(messages).map(Message::getID).collect(Collectors.toList())
);
}

Expand Down

0 comments on commit 800b5a8

Please sign in to comment.