phpsysinfo / phpsysinfo

phpSysInfo: a customizable PHP script that displays information about your system nicely
http://phpsysinfo.github.io/phpsysinfo
GNU General Public License v2.0
1.38k stars 234 forks source link

Wildcard Syntax Hide Network Interfaces #314

Closed LeeThompson closed 2 years ago

LeeThompson commented 2 years ago

When updating docker containers, sometimes their docker network ID changes. This makes hiding docker network interfaces in phpSysInfo a game of whack-a-mole.

It would be easily fixed if we could do this: HIDE_NETWORK_INTERFACE="io,sit0,docker*"

Instead of chasing it like this: HIDE_NETWORK_INTERFACE="io,sit0,dockerre5a6f0b,dockerd868f52,docker644076d,docker888500d,dockerb5cfce89,docker639c594,docker5483b48,docker513f313,docker9d8563a,docker0798c1d,docker69bc4f,docker5d752a3,docker425bb41,docker0,dockerb5cfe89,docker4aead27,dockerf483b48,dockere5a6f0b,dockerf69bc4f"

namiltd commented 2 years ago

Done, try new HIDE_NETWORK_INTERFACE_REGEX option to use a regular expression in the name of a hidden network interface: https://github.com/phpsysinfo/phpsysinfo/commit/d619d3f37fcb8ca3144b45d47044cd989c6000e6 e.g.: HIDE_NETWORK_INTERFACE_REGEX=true HIDE_NETWORK_INTERFACE="docker.*"

LeeThompson commented 2 years ago

You guys are always so responsive!

LeeThompson commented 2 years ago

Works great!