Skip to content

Commit 524dc7d

Browse files
committed
print support in basic example
1 parent b112019 commit 524dc7d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

examples/basic.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
#[tokio::main]
22
async fn main() {
3+
println!("builtin support: {:?}", public_ip::support());
4+
35
// Attempt to get an IP address and print it.
46
if let Some(ip) = public_ip::addr().await {
57
println!("public ip address: {:?}", ip);

0 commit comments

Comments
 (0)