Skip to content
This repository was archived by the owner on Sep 3, 2022. It is now read-only.

Replace 127.0.0.1's with localhost to support IPv6-only machines. #1190

Merged
merged 2 commits into from
Feb 16, 2017
Merged

Replace 127.0.0.1's with localhost to support IPv6-only machines. #1190

merged 2 commits into from
Feb 16, 2017

Conversation

fischman
Copy link
Contributor

When running on machines with no IPv4 interface, 127.0.0.1 is not a useful IP or
interface name. localhost on the other hand is ~universally useful for the same
concept, and works equally well on each of IPv4-only, IPv6-only, and dual-stack
machines.

This change replaces 3 explicit usages of "127.0.0.1" and two implicit ones
(hiding behind the default or null arguments to tcp-port-used's functions.

b/35224793

When running on machines with no IPv4 interface, 127.0.0.1 is not a useful IP or
interface name.  localhost on the other hand is ~universally useful for the same
concept, and works equally well on each of IPv4-only, IPv6-only, and dual-stack
machines.

This change replaces 3 explicit usages of "127.0.0.1" and two implicit ones
(hiding behind the default or null arguments to tcp-port-used's functions.

b/35224793
@chmeyers chmeyers requested a review from ojarjur February 14, 2017 21:49
@ojarjur ojarjur merged commit 5906fe8 into googledatalab:master Feb 16, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants