Conversation
|
The maintainers of this repository would appreciate it if you could provide more information. |
|
An example of my configuration: |
|
@T1MOXA please can you describe why this change is required. I'm sure its probably correct but I don't fully understand it. |
|
|
In my case, (with docker installed which explains the 172.17.X.X IP) on a CentOS VM: # ip -o -4 addr
1: lo inet 127.0.0.1/8 scope host lo\ valid_lft forever preferred_lft forever
2: eth0 inet 154.41.xxx
xxx/23 brd 154.41.67.255 scope global eth0\ valid_lft forever preferred_lft forever
3: docker0 inet 172.17.0.1/16 scope global docker0\ valid_lft forever preferred_lft foreverOriginal code output: # ip -o -4 addr| awk '{print $4}' | grep -oe '\([0-9]\{1,3\}\.\?\)\{4\}' | grep -v 127.0.0
154.41.xxx.xxx
172.17.0.1
# ip -o -4 addr| awk '{print $4}' | grep -oe '\([0-9]\{1,3\}\.\?\)\{4\}' | grep -vc 127.0.0
2New code output: # ip -o -4 addr|awk '{print $4}'|grep -oe '\([0-9]\{1,3\}\.\?\)\{4\}'|sort -u|grep -v 127.0.0
154.41.xxx.xxx
172.17.0.1
# ip -o -4 addr|awk '{print $4}'|grep -oe '\([0-9]\{1,3\}\.\?\)\{4\}'|sort -u|grep -vc 127.0.0
2Got the same kind of output on my Debian machine (which has a dozen IP), so no issue in the first place. Could possibly your original issue come from the fact that you have two times the same IP displayed in Any case, your PR doesn't seem to hurt, except we like to add spaces between pipes |
|
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
No description provided.