Macchina-CLI / macchina

A system information frontend with an emphasis on performance.
https://crates.io/crates/macchina
MIT License
1.48k stars 51 forks source link

No LocalIP on Alpine #335

Closed OH016 closed 1 week ago

OH016 commented 2 weeks ago

Describe the bug A clear and concise description of what the bug is.

Unable to get local IPv4 address.

macchina --doctor output Add a screenshot or copy and paste the output of --doctor if an element you're supposed to be seeing isn't showing up. image

grtcdr commented 2 weeks ago

I can also confirm this on a fresh Alpine container (macchina installed from edge repository).

cooocy commented 1 week ago

You must set up your network interface in the configuration file to display the IP address correctly. The demo configuration file is macchina.toml And set up this.

interface = "wlan0"

You can see your network interface using ifconfig or ipconfig. Like this:

image image
grtcdr commented 1 week ago

@cooocy (well duh) how did the interface option not cross my mind as the first thing to recommend for @OH016 to check? Heck, I even reproduced the error without editing the option appropriately myself.

Thanks for pointing that out.

EDIT: Our bug report template doesn't include a section containing the reporter's configuration, having that there would've helped us determine the cause of this issue much quicker. I guess I'll add it now.