Reduce the default communication timeout for local IPv6 address

This commit is contained in:
wh201906 committed 2023-10-17 20:20:21 +08:00
1 parent 08d55f331c
commit d1f916ba25
1 file changed
+3 -1
+3 -1
View File
@@ -682,7 +682,9 @@ int TestProxmark(pm3_device_t *dev) {
int res;
if (is_tcp_conn || is_udp_conn) {
if ((strstr(g_conn.serial_port_name, "localhost") != NULL) ||
(strstr(g_conn.serial_port_name, "127.0.0.1") != NULL)) {
(strstr(g_conn.serial_port_name, "127.0.0.1") != NULL) ||
(strstr(g_conn.serial_port_name, "[::1]") != NULL) ||
(strstr(g_conn.serial_port_name, "p:::1") != NULL)) {
res = uart_reconfigure_timeouts(UART_TCP_CLIENT_LOCAL_RX_TIMEOUT_MS);
} else {
res = uart_reconfigure_timeouts(UART_TCP_CLIENT_RX_TIMEOUT_MS);