diff --git a/plugins/syncthing/strelaysrv_ b/plugins/syncthing/strelaysrv_ index c5a9fe3d..5a30f27b 100755 --- a/plugins/syncthing/strelaysrv_ +++ b/plugins/syncthing/strelaysrv_ @@ -31,6 +31,9 @@ Pierre-Alain TORET MIT =cut +syncthing_relaysrv_host=${syncthing_relaysrv_host:-} +syncthing_relaysrv_port=${syncthing_relaysrv_port:-} + getstatus() { "$CURL" -s "http://$syncthing_relaysrv_host:$syncthing_relaysrv_port/status" } diff --git a/plugins/syncthing/syncthing_ b/plugins/syncthing/syncthing_ index d0a94de2..7bfd0cd0 100755 --- a/plugins/syncthing/syncthing_ +++ b/plugins/syncthing/syncthing_ @@ -34,6 +34,11 @@ Pierre-Alain TORET MIT =cut +syncthing_apikey=${syncthing_apikey:-} +syncthing_proto=${syncthing_proto:-} +syncthing_host=${syncthing_host:-} +syncthing_port=${syncthing_port:-} + getstatus() { "$CURL" -s -X GET -H "X-API-Key: $syncthing_apikey" "$syncthing_proto://$syncthing_host:$syncthing_port/rest/system/status" }