Skip to content

Commit

Permalink
chore: print out public ip
Browse files Browse the repository at this point in the history
  • Loading branch information
lukepolo committed Sep 3, 2024
1 parent f61d4d3 commit 5be4c55
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,8 @@ async function getPublicIP() {
const response = await fetch("https://checkip.amazonaws.com");

publicIP = (await response.text()).replace(/\n/, "");

console.info(`public ip: ${publicIP}`);
} catch (error) {
console.warn("unable to get ipv4 address", error);
}
Expand Down

0 comments on commit 5be4c55

Please sign in to comment.