Add README

This commit is contained in:
Quentin 2020-05-08 10:57:10 +02:00
parent 506d4b1cbf
commit 15a8745a31
2 changed files with 15 additions and 3 deletions

12
README.md Normal file
View File

@ -0,0 +1,12 @@
Diplonat
========
```bash
cargo build
export DIPLONAT_PRIVATE_IP="192.168.0.18"
export DIPLONAT_REFRESH_TIME="60"
export DIPLONAT_EXPIRATION_TIME="300"
export DIPLONAT_CONSUL_NODE_NAME="lheureduthe"
cargo run
```

View File

@ -59,9 +59,9 @@ async fn main() {
let resp = reqwest::get("http://127.0.0.1:8500")
.await
.unwrap()
.json::<HashMap<String, String>>()
.await.unwrap();
.unwrap();
//.json::<HashMap<String, String>>()
//.await.unwrap();
println!("{:#?}", resp);
let gateway = match search_gateway(Default::default()).await {