mirror of
https://github.com/fumiama/water.git
synced 2026-06-12 14:10:36 +08:00
Gofmt Cleanup
This commit is contained in:
4
if.go
4
if.go
@@ -1,8 +1,8 @@
|
|||||||
package water
|
package water
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"io"
|
|
||||||
"errors"
|
"errors"
|
||||||
|
"io"
|
||||||
)
|
)
|
||||||
|
|
||||||
// Interface is a TUN/TAP interface.
|
// Interface is a TUN/TAP interface.
|
||||||
@@ -73,5 +73,3 @@ func (ifce *Interface) IsTAP() bool {
|
|||||||
func (ifce *Interface) Name() string {
|
func (ifce *Interface) Name() string {
|
||||||
return ifce.name
|
return ifce.name
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -110,7 +110,7 @@ func createInterface(fd uintptr, ifName string, flags uint16) (createdIFName str
|
|||||||
}
|
}
|
||||||
|
|
||||||
func setPersistence(fd uintptr, enabled bool) error {
|
func setPersistence(fd uintptr, enabled bool) error {
|
||||||
value := 0;
|
value := 0
|
||||||
if enabled {
|
if enabled {
|
||||||
value = 1
|
value = 1
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user