Adding automatic IP address, some refactor and better texts. Upgrading version.

This commit is contained in:
midefos committed 2023-05-23 01:17:03 +02:00
1 parent 3bd55576ce
commit 01ac2ca7b7
12 files changed
+496 -149

No files matched your search

+4
View File
@@ -0,0 +1,4 @@
pub fn extract_public_ip() -> Result<String, ureq::Error> {
let body = ureq::get("https://ifconfig.me/ip").call()?.into_string()?;
Ok(body)
}