Reduce the default communication timeout for local IPv6 address

This commit is contained in:
wh201906 2023-10-17 20:20:21 +08:00
commit d1f916ba25
No known key found for this signature in database

View file

@ -682,7 +682,9 @@ int TestProxmark(pm3_device_t *dev) {
int res; int res;
if (is_tcp_conn || is_udp_conn) { if (is_tcp_conn || is_udp_conn) {
if ((strstr(g_conn.serial_port_name, "localhost") != NULL) || 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); res = uart_reconfigure_timeouts(UART_TCP_CLIENT_LOCAL_RX_TIMEOUT_MS);
} else { } else {
res = uart_reconfigure_timeouts(UART_TCP_CLIENT_RX_TIMEOUT_MS); res = uart_reconfigure_timeouts(UART_TCP_CLIENT_RX_TIMEOUT_MS);