mirror of
https://github.com/markqvist/Reticulum.git
synced 2026-07-21 07:28:10 -07:00
Added blackhole methods to API docs
This commit is contained in:
@@ -1295,4 +1295,24 @@ will announce it.
|
||||
|
||||
* **Parameters:**
|
||||
* **destination_hash** – A destination hash as *bytes*.
|
||||
* **on_interface** – If specified, the path request will only be sent on this interface. In normal use, Reticulum handles this automatically, and this parameter should not be used.
|
||||
* **on_interface** – If specified, the path request will only be sent on this interface. In normal use, Reticulum handles this automatically, and this parameter should not be used.
|
||||
|
||||
#### `static blackhole_identity(identity_hash, until=None, reason=None)`
|
||||
|
||||
Blackholes an identity.
|
||||
|
||||
* **Parameters:**
|
||||
* **identity_hash** – The identity hash to blackhole as *bytes*.
|
||||
* **until** – Optional unix timestamp of when the blackhole expires as *float* or *int*.
|
||||
* **reason** – Optional reason for the blackhole as *str*.
|
||||
* **Returns:**
|
||||
*True* if successful, otherwise *False*.
|
||||
|
||||
#### `static unblackhole_identity(identity_hash)`
|
||||
|
||||
Lifts blackhole for an identity.
|
||||
|
||||
* **Parameters:**
|
||||
**identity_hash** – The identity hash to blackhole as *bytes*.
|
||||
* **Returns:**
|
||||
*True* if successful, otherwise *False*.
|
||||
Reference in New Issue
Block a user