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:
+1
-1
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user