diff --git a/ogclient/lib/python3/ProtocolLib.py b/ogclient/lib/python3/ProtocolLib.py index e3ebb54..1b41ba8 100644 --- a/ogclient/lib/python3/ProtocolLib.py +++ b/ogclient/lib/python3/ProtocolLib.py @@ -704,7 +704,18 @@ def ogTorrentStart (disk=None, par=None, container=None, torrentfile=None, torre if 'seeder' != mode: return 'success' ## return any true value print ('MODE seeder aria2c') os.chdir (dirsource) - aria2_cmd = ["aria2c", "--check-integrity=true", "--bt-seed-unverified=true", "--seed-ratio=0.0", f"--seed-time={time}", "--enable-dht=false", "--enable-peer-exchange=false", f"--dir={dirsource}", f"{source}"] + aria2_cmd = [ + "aria2c", + "--check-integrity=true", + "--bt-seed-unverified=true", + "--disable-ipv6", + "--seed-ratio=0.0", + f"--seed-time={time}", + "--enable-dht=false", + "--enable-peer-exchange=false", + f"--dir={dirsource}", + f"{source}" + ] subprocess.run (aria2_cmd) os.chdir (cwd) return 'success' @@ -729,6 +740,7 @@ def ogTorrentStart (disk=None, par=None, container=None, torrentfile=None, torre "aria2c", "--enable-dht=false", "--enable-peer-exchange=false", + "--disable-ipv6" , f"--seed-time={time}", f"--dir={dirsource}", f"{source}" @@ -743,7 +755,6 @@ def ogTorrentStart (disk=None, par=None, container=None, torrentfile=None, torre "--enable-peer-exchange=false", "--disable-ipv6" , "--seed-time=0", - "bt-max-peers=0", f"--dir={dirsource}", f"{source}" ] @@ -755,6 +766,7 @@ def ogTorrentStart (disk=None, par=None, container=None, torrentfile=None, torre "aria2c", "--check-integrity=true", "--bt-seed-unverified=true", + "--disable-ipv6" , "--seed-ratio=0.0", f"--seed-time={time}", "--enable-dht=false", @@ -843,7 +855,7 @@ def ogCreateTorrent (disk=None, par=None, container=None, file=None, ip_bttrack= - + #/** # ogUpdateCacheIsNecesary [ str_repo ] Relative_path_file_OGIMG_with_/ #@brief Comprueba que el fichero que se desea almacenar en la cache del cliente, no esta.