1. OpenSourceRoboticsFoundation
  2. Simulation
  3. gazebo
  4. Pull requests

Pull requests

#272 Merged at 8479b1a
Repository
Branch
fix_ipv6
Repository
Branch
gazebo_1.4

Fix for issue #483

Author
  1. Nathan Koenig
Reviewers
Description

See issue for test case.

  • Issues #483: IPv6 handled improperly closed

Comments (4)

  1. Steven Peters

    This works if I have two entries that contain localhost in my hosts file, like the following:

    127.0.0.1 localhost
    ::1       localhost ip6-localhost ip6-loopback
    

    It doesn't work if I comment out the line containing 127.0.0.1 localhost, giving the following repeating error:

    .Error [Connection.cc:138] Unable to resolve uri[localhost:11345]
    .Error [Connection.cc:138] Unable to resolve uri[localhost:11345]
    

    Would anyone only provide an ipv6 address for localhost? If this is likely to happen, perhaps we could give a more informative warning message, like:

    .Error [Connection.cc:138] Unable to resolve uri[localhost:11345], do you have `127.0.0.1 localhost` in your /etc/hosts files?
    
    1. Nathan Koenig author

      We can't explicitly put 127.0.0.1 localhost in the error message because the function is used for more than localhost.

      I also don't want to put in text to check '/etc/hosts' because that is OS specific.

      The type of error your have created is a broken network configuration. The user can check answers.gazebosim.org or other network configuration help sites.