Skip to content

Commit

Permalink
refactor: fix type error (#29)
Browse files Browse the repository at this point in the history
  • Loading branch information
antfu committed Jun 8, 2022
1 parent 01b9762 commit 4aefa12
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ function getExternalIps (): string[] {
for (const details of Object.values(networkInterfaces())) {
if (details) {
for (const d of details) {
if ((d.family === 'IPv4' || d.family === 4) && !d.internal) {
if ((d.family === 'IPv4' || +d.family === 4) && !d.internal) {
ips.add(d.address)
}
}
Expand Down

0 comments on commit 4aefa12

Please sign in to comment.