go.crypto: various: fix appengine compatibility

Fixes golang/go#4102.

R=russross, minux.ma, rsc, agl
CC=golang-dev
https://golang.org/cl/6623053
This commit is contained in:
Dave Cheney
2012-10-09 13:15:42 +11:00
parent dc67354e86
commit 4ce1924ebb
5 changed files with 7 additions and 3 deletions
+1 -1
View File
@@ -412,7 +412,7 @@ func parseTCPAddr(b []byte) (*net.TCPAddr, []byte, bool) {
if ip == nil {
return nil, b, false
}
return &net.TCPAddr{ip, int(port)}, b, true
return &net.TCPAddr{IP: ip, Port: int(port)}, b, true
}
// Dial connects to the given network address using net.Dial and
+1 -1
View File
@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
// +build linux
// +build linux,!appengine
// Package terminal provides support functions for dealing with terminals, as
// commonly found on UNIX systems.