mirror of
https://github.com/yggdrasil-network/water.git
synced 2025-05-19 08:25:09 +03:00
Gofmt Cleanup
This commit is contained in:
parent
3c9a2e9525
commit
f9df1e79f2
2 changed files with 2 additions and 4 deletions
4
if.go
4
if.go
|
@ -1,8 +1,8 @@
|
|||
package water
|
||||
|
||||
import (
|
||||
"io"
|
||||
"errors"
|
||||
"io"
|
||||
)
|
||||
|
||||
// Interface is a TUN/TAP interface.
|
||||
|
@ -73,5 +73,3 @@ func (ifce *Interface) IsTAP() bool {
|
|||
func (ifce *Interface) Name() string {
|
||||
return ifce.name
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -110,7 +110,7 @@ func createInterface(fd uintptr, ifName string, flags uint16) (createdIFName str
|
|||
}
|
||||
|
||||
func setPersistence(fd uintptr, enabled bool) error {
|
||||
value := 0;
|
||||
value := 0
|
||||
if enabled {
|
||||
value = 1
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue