mirror of
https://github.com/Genymobile/scrcpy.git
synced 2026-04-21 01:33:36 +00:00
Detect TCP devices provided by mDNS
Their serial is not in the form ip:port, but rather a complex string containing "adb-tls-connect". Fixes #6248 <https://github.com/Genymobile/scrcpy/issues/6248> PR #6665 <https://github.com/Genymobile/scrcpy/pull/6665>
This commit is contained in:
parent
82e102e036
commit
51cbd9a5bc
1 changed files with 6 additions and 0 deletions
|
|
@ -39,5 +39,11 @@ sc_adb_device_get_type(const char *serial) {
|
|||
return SC_ADB_DEVICE_TYPE_TCPIP;
|
||||
}
|
||||
|
||||
// TCP/IP devices provided by mDNS contain "adb-tls-connect"
|
||||
// <https://github.com/Genymobile/scrcpy/issues/6248>
|
||||
if (strstr(serial, "adb-tls-connect")) {
|
||||
return SC_ADB_DEVICE_TYPE_TCPIP;
|
||||
}
|
||||
|
||||
return SC_ADB_DEVICE_TYPE_USB;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue