diff options
Diffstat (limited to 'src/utils/pub_ip.rs')
-rw-r--r-- | src/utils/pub_ip.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/utils/pub_ip.rs b/src/utils/pub_ip.rs index 4f1335f..dde354a 100644 --- a/src/utils/pub_ip.rs +++ b/src/utils/pub_ip.rs @@ -1,7 +1,7 @@ use crate::config::CONFIG; use crate::types::ThreadsData; -pub fn get_pub_ip() -> ThreadsData { +pub async fn get_pub_ip() -> ThreadsData { let url = "http://api.ipify.org".to_string(); let _err = String::from("Error"); let res = match minreq::get(url).send() { |