avoid unnecessary nested content
This commit is contained in:
3
torrents/config/setPortForward
Executable file
3
torrents/config/setPortForward
Executable 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
|
||||
Reference in New Issue
Block a user