summaryrefslogtreecommitdiffhomepage
path: root/tun_darwin.go
diff options
context:
space:
mode:
Diffstat (limited to 'tun_darwin.go')
-rw-r--r--tun_darwin.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/tun_darwin.go b/tun_darwin.go
index 5514563..1d66c66 100644
--- a/tun_darwin.go
+++ b/tun_darwin.go
@@ -46,7 +46,7 @@ var sockaddrCtlSize uintptr = 32
func CreateTUN(name string) (TUNDevice, error) {
ifIndex := -1
- if (name != "utun") {
+ if name != "utun" {
fmt.Sscanf(name, "utun%d", &ifIndex)
if ifIndex < 0 {
return nil, fmt.Errorf("Interface name must be utun[0-9]*")