From 944d6c80e482b8cd028c16720e4ebc00b5746f62 Mon Sep 17 00:00:00 2001 From: Ghost_chu Date: Thu, 2 Jan 2025 22:55:32 +0800 Subject: [PATCH] =?UTF-8?q?=E9=BB=98=E8=AE=A4=E5=85=B3=E9=97=AD=E5=85=81?= =?UTF-8?q?=E8=AE=B8=E7=9B=B8=E5=90=8C=20IP=20=E8=BF=9E=E6=8E=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../ghostchu/peerbanhelper/downloaderplug/biglybt/Plugin.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/main/java/com/ghostchu/peerbanhelper/downloaderplug/biglybt/Plugin.java b/src/main/java/com/ghostchu/peerbanhelper/downloaderplug/biglybt/Plugin.java index 01dcfc2..c028123 100644 --- a/src/main/java/com/ghostchu/peerbanhelper/downloaderplug/biglybt/Plugin.java +++ b/src/main/java/com/ghostchu/peerbanhelper/downloaderplug/biglybt/Plugin.java @@ -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; @@ -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()); }