aboutsummaryrefslogtreecommitdiff
path: root/ssh/server_test.go
diff options
context:
space:
mode:
authorDave Cheney <dave@cheney.net>2012-04-21 10:44:56 +1000
committerDave Cheney <dave@cheney.net>2012-04-21 10:44:56 +1000
commit58afe880f197c244a2edbfab2bb090a5bf02dfe1 (patch)
treee4a000eff0ac706ba5a566720c06b9659465e6e4 /ssh/server_test.go
parent63f855d724c1fff8ec15a0191dcda32ec7761cc4 (diff)
downloadgo-x-crypto-58afe880f197c244a2edbfab2bb090a5bf02dfe1.tar.xz
go.crypto/ssh: server_test should bind to localhost only
Hopefully fix build error under windows. Binding to the wildcard is poor form for our darwin users as it triggers the firewall popup. Dialing the wildcard looks like it's implementation specific as well. R=agl, kardianos CC=golang-dev https://golang.org/cl/6104046
Diffstat (limited to 'ssh/server_test.go')
-rw-r--r--ssh/server_test.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/ssh/server_test.go b/ssh/server_test.go
index 3e79e48..898b356 100644
--- a/ssh/server_test.go
+++ b/ssh/server_test.go
@@ -120,7 +120,7 @@ func startSSHServer(t *testing.T) (addr string) {
t.Fatalf("Failed to parse private key: %s", err.Error())
}
- listener, err := Listen("tcp", ":0", config)
+ listener, err := Listen("tcp", "127.0.0.1:0", config)
if err != nil {
t.Fatalf("Bind error: %s", err)
}