avoid unnecessary nested content

This commit is contained in:
Colin Hebert
2023-11-20 09:17:35 +11:00
parent 7b34d3735d
commit 41d64d4b48
46 changed files with 0 additions and 8 deletions

3
torrents/config/setPortForward Executable file
View File

@@ -0,0 +1,3 @@
#!/command/with-contenv bash
listen_port=$(python3 /py-natpmp/natpmp/natpmp_client.py -g 10.2.0.1 0 0 | sed -E 's/.*?public port ([0-9]+).*?/\1/')
curl -F "json={\"listen_port\": ${listen_port}}" http://localhost:8080/api/v2/app/setPreferences