bpo-32199: The getnode() ip getter now uses 'ip link' instead of 'ip… · python/cpython@03031fb (original) (raw)

Skip to content

Provide feedback

Saved searches

Use saved searches to filter your results more quickly

Sign up

Appearance settings

Commit 03031fb

miss-islingtonxdegaye

authored and

committed

File tree

2 files changed

lines changed

2 files changed

lines changed

Original file line number Diff line number Diff line change
@@ -358,7 +358,7 @@ def _ifconfig_getnode():
358 358 def _ip_getnode():
359 359 """Get the hardware address on Unix by running ip."""
360 360 # This works on Linux with iproute2.
361 -mac = _find_mac('ip', 'link list', [b'link/ether'], lambda i: i+1)
361 +mac = _find_mac('ip', 'link', [b'link/ether'], lambda i: i+1)
362 362 if mac:
363 363 return mac
364 364
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
1 +The getnode() ip getter now uses 'ip link' instead of 'ip link list'.