Skip to content

Commit

Permalink
allow different 127. addresses than 127.0.0.1 (fix #315)
Browse files Browse the repository at this point in the history
  • Loading branch information
dirk-thomas committed Nov 8, 2013
1 parent 47dca4e commit f83a50a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tools/rosgraph/src/rosgraph/network.py
Original file line number Diff line number Diff line change
Expand Up @@ -254,6 +254,8 @@ def get_bind_address(address=None):
#localhost or 127/8
if use_ipv6():
return '::1'
elif address.startswith('127.'):
return address
else:
return '127.0.0.1' #loopback
else:
Expand Down

0 comments on commit f83a50a

Please sign in to comment.