mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2025-01-30 08:04:08 +00:00
added /sbin/ip as possible binary to detect local IP address
fixes IP detection for RHEL flavors Signed-off-by: Lukas Pirl <git@lukas-pirl.de>
This commit is contained in:
parent
5a195e2339
commit
1491e9fab1
@ -162,6 +162,7 @@ _win32_commands = (('route.exe', ('print',), _win32_re),)
|
||||
# These work in most Unices.
|
||||
_addr_re = re.compile(r'^\s*inet [a-zA-Z]*:?(?P<address>\d+\.\d+\.\d+\.\d+)[\s/].+$', flags=re.M|re.I|re.S)
|
||||
_unix_commands = (('/bin/ip', ('addr',), _addr_re),
|
||||
('/sbin/ip', ('addr',), _addr_re),
|
||||
('/sbin/ifconfig', ('-a',), _addr_re),
|
||||
('/usr/sbin/ifconfig', ('-a',), _addr_re),
|
||||
('/usr/etc/ifconfig', ('-a',), _addr_re),
|
||||
|
Loading…
x
Reference in New Issue
Block a user