aboutsummaryrefslogtreecommitdiffstats
path: root/conf
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2019-05-16 15:49:18 +0200
committerJason A. Donenfeld <Jason@zx2c4.com>2019-05-16 15:49:18 +0200
commit7dbd3a69af43c58255b1dce82d05906f6243b06d (patch)
tree8eff8a92b1966f1934ab321bc1a5a060f7a6fd71 /conf
parentservice: use more upstream constants (diff)
downloadwireguard-windows-7dbd3a69af43c58255b1dce82d05906f6243b06d.tar.xz
wireguard-windows-7dbd3a69af43c58255b1dce82d05906f6243b06d.zip
global: correct names and patterns for go lint
Diffstat (limited to 'conf')
-rw-r--r--conf/config.go3
1 files changed, 1 insertions, 2 deletions
diff --git a/conf/config.go b/conf/config.go
index b26dd09d..5b3496b6 100644
--- a/conf/config.go
+++ b/conf/config.go
@@ -67,9 +67,8 @@ func (r *IPCidr) String() string {
func (r *IPCidr) Bits() uint8 {
if r.IP.To4() != nil {
return 32
- } else {
- return 128
}
+ return 128
}
func (r *IPCidr) IPNet() net.IPNet {