aboutsummaryrefslogtreecommitdiffstats
path: root/vm
diff options
context:
space:
mode:
authorAndrey Artemiev <artemiev@google.com>2022-08-09 13:10:48 -0700
committerDmitry Vyukov <dvyukov@google.com>2022-08-10 10:11:45 +0200
commitaaa9eaa08ca5e49ed8eb25960fb636a5b32f3c50 (patch)
tree8aba5683d96cd096bb6b4c72d42f5a19a8013cb4 /vm
parentc2a623d6448d34158ff2b6a5f50dc371644425b7 (diff)
vm/adb: added a new condition to determine localhost
Diffstat (limited to 'vm')
-rw-r--r--vm/adb/adb.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/vm/adb/adb.go b/vm/adb/adb.go
index 7ee38598f..44bdc040d 100644
--- a/vm/adb/adb.go
+++ b/vm/adb/adb.go
@@ -503,7 +503,7 @@ func isRemoteCuttlefish(dev string) (bool, string) {
return false, ""
}
ip := strings.Split(dev, ":")[0]
- if ip == "0.0.0.0" || ip == "127.0.0.1" {
+ if ip == "localhost" || ip == "0.0.0.0" || ip == "127.0.0.1" {
return false, ip
}
return true, ip