Reduce the default communication timeout for local IPv6 address
This commit is contained in:
1 file changed
+3
-1
+3
-1
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user