sindresorhus/public-ip

Add sync method like on internal-ip

Closed this issue · 1 comments

Is it possible to have a sync method like on internal-ip to resolve this in a synchronous way ?

publicIp.v4.sync()
kevva commented

It works in internal-ip because it doesn't make any HTTP requests. But since that is required in this module to be able to get the public IP we're probably not going to have a sync method for it.