mirror of
https://github.com/aramperes/nut-rs.git
synced 2025-09-08 21:18:31 -04:00
Improve wording
This commit is contained in:
parent
d36999db6d
commit
cd295016c8
1 changed files with 5 additions and 5 deletions
10
README.md
10
README.md
|
@ -34,7 +34,7 @@ The [rupsc](https://github.com/aramperes/nut-client-rs/tree/master/rupsc)
|
||||||
CLI is written using this library, and is a clone of NUT's
|
CLI is written using this library, and is a clone of NUT's
|
||||||
built-in [upsc](https://networkupstools.org/docs/man/upsc.html) tool.
|
built-in [upsc](https://networkupstools.org/docs/man/upsc.html) tool.
|
||||||
|
|
||||||
Here is an example use of this library (`cargo run --example blocking`):
|
Below is a sample program using this library (`cargo run --example blocking`).
|
||||||
|
|
||||||
```rust
|
```rust
|
||||||
use std::env;
|
use std::env;
|
||||||
|
@ -82,9 +82,9 @@ fn main() -> nut_client::Result<()> {
|
||||||
|
|
||||||
## SSL
|
## SSL
|
||||||
|
|
||||||
You can turn on SSL support by adding `.with_ssl(true)` in the `ConfigBuilder`.
|
You can turn on SSL support by adding `.with_ssl(true)` in the `ConfigBuilder`. This requires the `ssl` feature, which
|
||||||
This requires the `ssl` feature, which uses `rustls` under the hood.
|
uses `rustls` under the hood.
|
||||||
|
|
||||||
Note that this crate turns off all certificate validation at the moment, effectively
|
Note that this crate turns off all certificate validation at the moment, effectively giving a false sense of security.
|
||||||
giving a false sense of security. If you'd like to contribute to this, see issue #8.
|
If you'd like to contribute to this, see issue #8.
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue