Compare commits
No commits in common. "470f2f02489cb02fd102a29bd84b27870ba111ad" and "0d9a2f9d68275a00429552e839177e6e775b50e7" have entirely different histories.
470f2f0248
...
0d9a2f9d68
1 changed files with 40 additions and 40 deletions
|
@ -157,7 +157,7 @@ func CreateTUN(name string, mtu int) (Device, error) {
|
||||||
|
|
||||||
if errno != 0 {
|
if errno != 0 {
|
||||||
tunfile.Close()
|
tunfile.Close()
|
||||||
return nil, fmt.Errorf("Unable to put into multi-af mode: %v", errno)
|
return nil, fmt.Errorf("Unable to put into IFHEAD mode: %v", errno)
|
||||||
}
|
}
|
||||||
|
|
||||||
_, _, errno = unix.Syscall(
|
_, _, errno = unix.Syscall(
|
||||||
|
@ -169,7 +169,7 @@ func CreateTUN(name string, mtu int) (Device, error) {
|
||||||
|
|
||||||
if errno != 0 || ifheadmode == 0 {
|
if errno != 0 || ifheadmode == 0 {
|
||||||
tunfile.Close()
|
tunfile.Close()
|
||||||
return nil, fmt.Errorf("Unable to validate multi-af mode: %v", errno)
|
return nil, fmt.Errorf("Unable to validate IFHEAD mode: %v (ifheadmode = %d)", errno, ifheadmode)
|
||||||
}
|
}
|
||||||
|
|
||||||
if err == nil && name == "tun" {
|
if err == nil && name == "tun" {
|
||||||
|
|
Loading…
Reference in a new issue