Skip to content

Commit

Permalink
表达式写反了 BTN-Collected-Rules#17
Browse files Browse the repository at this point in the history
  • Loading branch information
Ghost-chu committed Jan 6, 2025
1 parent 3e53fba commit 250515c
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -307,8 +307,8 @@ public void cronUpdateTrunkerFile() {
}
}
if (
!((peerInfo.getUserAgent().contains("Transmission") == peerId.startsWith("-TR")))
|| !((peerInfo.getUserAgent().contains("aria2") == peerId.startsWith("A2")))
(peerInfo.getUserAgent().contains("Transmission") != peerId.startsWith("-TR"))
|| (peerInfo.getUserAgent().contains("aria2") != peerId.startsWith("A2"))
) {
var ip = IPUtil.toIPAddress(peerInfo.getIp().getClientIp().toByteArray());
if (!ip.isLocal() && !ip.isLoopback()) {
Expand Down

0 comments on commit 250515c

Please sign in to comment.