fix: checkTunName mistake
This commit is contained in:
parent
df28a353b9
commit
32978a6459
1 changed files with 1 additions and 1 deletions
|
@ -77,7 +77,7 @@ func checkTunName(tunName string) (ok bool) {
|
|||
if len(tunName) <= 4 {
|
||||
return false
|
||||
}
|
||||
if tunName[:4] == "utun" {
|
||||
if tunName[:4] != "utun" {
|
||||
return false
|
||||
}
|
||||
if _, parseErr := strconv.ParseInt(tunName[4:], 10, 16); parseErr != nil {
|
||||
|
|
Loading…
Reference in a new issue