mirror of
https://github.com/MetaCubeX/mihomo.git
synced 2024-11-16 11:42:43 +08:00
fix: checkTunName mistake
This commit is contained in:
parent
880664c6ab
commit
5bfad04b41
|
@ -77,7 +77,7 @@ func checkTunName(tunName string) (ok bool) {
|
||||||
if len(tunName) <= 4 {
|
if len(tunName) <= 4 {
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
if tunName[:4] == "utun" {
|
if tunName[:4] != "utun" {
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
if _, parseErr := strconv.ParseInt(tunName[4:], 10, 16); parseErr != nil {
|
if _, parseErr := strconv.ParseInt(tunName[4:], 10, 16); parseErr != nil {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user