Skip to content

Commit

Permalink
默认关闭允许相同 IP 连接
Browse files Browse the repository at this point in the history
  • Loading branch information
Ghost-chu committed Jan 2, 2025
1 parent e2d64c6 commit 944d6c8
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
package com.ghostchu.peerbanhelper.downloaderplug.biglybt;

import com.biglybt.core.config.COConfigurationManager;
import com.biglybt.core.config.ConfigKeys;
import com.biglybt.core.networkmanager.NetworkConnectionFactory;
import com.biglybt.core.networkmanager.Transport;
import com.biglybt.pif.PluginConfig;
Expand Down Expand Up @@ -208,6 +210,7 @@ private void reloadPlugin() {
log.info("PBH-Adapter WebServer started with: port={}, token={}",
port,
token);
COConfigurationManager.setParameter(ConfigKeys.Transfer.BCFG_ALLOW_SAME_IP_PEERS, true);
initEndpoints(webContainer.javalin());
}

Expand Down

0 comments on commit 944d6c8

Please sign in to comment.