Explorar el Código

x/net/ipv4: fix build on older darwin kernels

A few adjustments for test cases will come in a following CL.

LGTM=iant
R=iant
CC=golang-codereviews
https://golang.org/cl/179760044
Mikio Hara hace 11 años
padre
commit
724ab9af50
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  1. 2 2
      ipv4/sys_darwin.go

+ 2 - 2
ipv4/sys_darwin.go

@@ -43,8 +43,8 @@ func init() {
 	}
 	var i int
 	for i = range osver {
-		if osver[i] != '.' {
-			continue
+		if osver[i] == '.' {
+			break
 		}
 	}
 	// The IP_PKTINFO and protocol-independent multicast API were