fix(nat): notify GUI and include profiles in Android socket snapshots
This commit is contained in:
1 parent
60104ea093
commit
c69f8d8975
3 files changed
+87
-16
No files matched your search
@@ -2,6 +2,7 @@
|
||||
* через router, независимо от прямого UDP-ответа. Входящие пробы не получают PONG;
|
||||
* незнакомость фактического source IP проверяет только получатель. */
|
||||
#include "nat_detection.h"
|
||||
#include "chat/chat_event.h"
|
||||
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
@@ -311,6 +312,7 @@ static void publish(struct NAT_DETECTION *detector) {
|
||||
detector->publish_pending = topo_node_update_my_addresses(detector->instance) < 0;
|
||||
if (detector->publish_pending) detector->publish_after = get_time_tb() + 10000;
|
||||
if (detector->publish_pending) DEBUG_ERROR(DEBUG_CATEGORY_NAT, "NAT profile publication failed; retry scheduled");
|
||||
else chat_event_post(detector->instance, CHAT_EVT_LOCAL_SOCKETS, NULL, 0);
|
||||
}
|
||||
|
||||
static struct nat_socket *socket_state(struct NAT_DETECTION *detector, struct ETCP_SOCKET *socket, int create) {
|
||||
|
||||
Reference in new issue
Block a user