Skip to content

Commit f4eb1c6

Browse files
committed
Tweak output when setting up aliases
1 parent c18d9e3 commit f4eb1c6

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

tests/test_p2p.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -204,6 +204,7 @@ def SetupMockIPs():
204204
print( "Nothing to do on this platform." )
205205
return
206206
for addr in _ALL_MOCK_ADDRS:
207+
print( "Running 'ifconfig lo0 alias %s'" % addr )
207208
subprocess.run( [ 'ifconfig', 'lo0', 'alias', addr ], check=True )
208209
print( "Added %d loopback alias(es)." % len( _ALL_MOCK_ADDRS ) )
209210

@@ -215,6 +216,7 @@ def CleanupMockIPs():
215216
for addr in _ALL_MOCK_ADDRS:
216217
if addr == '127.0.0.1':
217218
continue
219+
print( "Running 'ifconfig lo0 -alias %s'" % addr )
218220
subprocess.run( [ 'ifconfig', 'lo0', '-alias', addr ], check=False )
219221
print( "Removed loopback aliases." )
220222

0 commit comments

Comments
 (0)