Skip to content

Commit

Permalink
v1.4.1
Browse files Browse the repository at this point in the history
  • Loading branch information
brona committed Sep 18, 2022
1 parent 24e2312 commit e2790e5
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -74,10 +74,13 @@ Goal of this utility is to provide compatible CLI with [iproute2](http://www.pol

## Supported Mac OS X versions (Tested)

* macOS Monterey 12.3
* macOS Monterey 12.6

## Changelog

**v1.4.1**
* Fixed `ip neigh show dev en0` (Issue #43, Thanks @SimonTate)

**v1.4.0**
* Internal cleanup and code style changes
* Added blackhole routes `ip route add blackhole 192.0.2.0/24` (Thanks @mhio)
Expand Down
10 changes: 4 additions & 6 deletions src/ip.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
import types

# Version
VERSION = "1.4.0"
VERSION = "1.4.1"

# Utilities
SUDO = "/usr/bin/sudo"
Expand Down Expand Up @@ -653,13 +653,11 @@ def do_neigh_show(argv, af):
neighs.append(entry)

if af != 6:
args = [ARP, "-anl" ]
args = [ARP, "-anl"]
if dev:
args += [ "-i", dev ]
args += ["-i", dev]

res = subprocess.run(
args, capture_output=True, text=True, check=True
)
res = subprocess.run(args, capture_output=True, text=True, check=True)
for row in res.stdout.splitlines()[1:]:
cols = row.split()
entry = {}
Expand Down

0 comments on commit e2790e5

Please sign in to comment.