mirror of
https://github.com/arampoire/nut-rs.git
synced 2025-12-01 00:30:23 -05:00
Update README
This commit is contained in:
parent
dcad9c4093
commit
279b10b148
2 changed files with 14 additions and 0 deletions
10
README.md
10
README.md
|
|
@ -11,6 +11,7 @@ A [Network UPS Tools](https://github.com/networkupstools/nut) (NUT) client libra
|
|||
- Login with username and password
|
||||
- List UPS devices
|
||||
- List variables for a UPS device
|
||||
- Connect securely with SSL (optional feature)
|
||||
|
||||
## Getting Started
|
||||
|
||||
|
|
@ -78,3 +79,12 @@ fn main() -> nut_client::Result<()> {
|
|||
Ok(())
|
||||
}
|
||||
```
|
||||
|
||||
## SSL
|
||||
|
||||
You can turn on SSL support by adding `.with_ssl(true)` in the `ConfigBuilder`.
|
||||
This requires the `ssl` feature, which uses `rustls` under the hood.
|
||||
|
||||
Note that this crate turns off all certificate validation at the moment, effectively
|
||||
giving a false sense of security. If you'd like to contribute to this, see issue #8.
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue