[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[tor-commits] [check/master] Appease go vet



commit eb0cc045c53374e7c3b833c8a59f775862fb599d
Author: Arlo Breault <arlolra@xxxxxxxxx>
Date:   Wed Jul 8 20:42:10 2015 -0700

    Appease go vet
---
 datastore.go |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/datastore.go b/datastore.go
index 4ce9516..47ca981 100644
--- a/datastore.go
+++ b/datastore.go
@@ -240,7 +240,7 @@ func (e *Exits) Load(source io.Reader, update bool) error {
 				if mask := net.ParseIP(r.Mask); r.IP != nil && mask != nil {
 					m := make(net.IPMask, len(mask))
 					copy(m, mask)
-					r.IPNet = &net.IPNet{r.IP.Mask(m), m}
+					r.IPNet = &net.IPNet{IP: r.IP.Mask(m), Mask: m}
 				}
 			}
 		}



_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits