We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ce387c5 commit 3f42be1Copy full SHA for 3f42be1
tun_freebsd.go
@@ -47,7 +47,7 @@ func (c *Tun) Activate() error {
47
if err = exec.Command("ifconfig", c.Device, c.Cidr.String(), c.Cidr.IP.String()).Run(); err != nil {
48
return fmt.Errorf("failed to run 'ifconfig': %s", err)
49
}
50
- /* This is not needed on FreeBSD
+ /* This is not needed on FreeBSD
51
fmt.Println("command: route", "-n", "add", "-net", c.Cidr.String(), "-interface", c.Device)
52
if err = exec.Command("route", "-n", "add", "-net", c.Cidr.String(), "-interface", c.Device).Run(); err != nil {
53
return fmt.Errorf("failed to run 'route add': %s", err)
0 commit comments