wtfutil / wtf

The personal information dashboard for your terminal
http://wtfutil.com
Mozilla Public License 2.0
15.83k stars 804 forks source link

IPInfo module features: scrolling and option for ipv4 address #1110

Closed poetaman closed 2 years ago

poetaman commented 3 years ago

What should it do?

Currently the IP info module shows ipv6 address in my dashboard, and I would like to see ipv4. So the request is to add an option so user can specify which address is shown. Interestingly, the address shows in the screenshot at https://wtfutil.com/modules/ipaddress/ipinfo/ is ipv4. So it seems to vary by user.

It would also be great to have a scrolling option, currently ipv6 address does not fit in the window width I had allocated to IPInfo module.

senorprogrammer commented 3 years ago

I just noticed that my IP address listing has changed to IPv6 as well. Interesting. It was definitely v4 before.

poetaman commented 3 years ago

@senorprogrammer It would also be nice to be able to pass our own api_key. Weird that when I use https://ipinfo.io from command line, it returns IPv4 string.

siddhant94 commented 3 years ago

Hi @senorprogrammer , for me with v0.39.2, this shows ip address in ipv4 format only. If this still qualifies as bug, any pointers on how to reproduce it?

senorprogrammer commented 3 years ago

Nope, not yet, I haven't had a chance to try.

stale[bot] commented 2 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

poetaman commented 2 years ago

Btw, I am somehow seeing ipv4 addresses again. Did you change anything?

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] commented 2 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

poetaman commented 2 years ago

Bypass stale bot...

vadeg commented 2 years ago

The IP address format depends on OS preferences. The OS may decide when to use IpV4 or IpV6. I added a configuration to enforce specific configuration or fallback to default.