diff options
| author | Felix Fietkau | 2023-08-21 20:36:01 +0000 |
|---|---|---|
| committer | Felix Fietkau | 2023-08-21 20:36:06 +0000 |
| commit | 12ac684ee22aff0ab806c5f6e8031f844cd918f8 (patch) | |
| tree | 9baacb5d7e412e09f210497725d3c658bde7843d | |
| parent | 48049524d4fc255d78f054549c75863ca87770d6 (diff) | |
| download | unetd-12ac684ee22aff0ab806c5f6e8031f844cd918f8.tar.gz | |
pex: do not query for hosts with a gateway
If we're not the gateway, we don't care about the result
If we are the gateway, nobody else will have the answer
Signed-off-by: Felix Fietkau <nbd@nbd.name>
| -rw-r--r-- | pex.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -344,7 +344,7 @@ network_pex_query_hosts(struct network *net) void *id; if ((net->stun.port_ext && host == net->net_config.local_host) || - peer->state.connected || peer->endpoint) + peer->state.connected || peer->endpoint || host->gateway) continue; id = pex_msg_append(PEX_ID_LEN); |