Addresses are just addresses - no ports

Store address+port in an unexported field for ease-of-use
This commit is contained in:
Michael Schurter
2016-11-09 11:37:41 -08:00
parent 1893772f4b
commit 1304ba8b2d
6 changed files with 173 additions and 175 deletions

View File

@@ -61,7 +61,7 @@ func TestCommand_Args(t *testing.T) {
// To prevent test failures on hosts whose hostname resolves to
// a loopback address, we must append a bind address
tc.args = append(tc.args, "-bind=127.0.0.1")
tc.args = append(tc.args, "-bind=169.254.0.1")
if code := cmd.Run(tc.args); code != 1 {
t.Fatalf("args: %v\nexit: %d\n", tc.args, code)
}