summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/peer.c3
-rw-r--r--src/protocols/ec25519_fhmqvc/handshake.c2
2 files changed, 1 insertions, 4 deletions
diff --git a/src/peer.c b/src/peer.c
index b8763b6..feacc73 100644
--- a/src/peer.c
+++ b/src/peer.c
@@ -466,9 +466,6 @@ bool fastd_peer_claim_address(fastd_peer_t *new_peer, fastd_socket_t *sock, cons
}
if (fastd_peer_address_equal(&peer->address, remote_addr)) {
- if (fastd_peer_is_established(peer))
- return false;
-
reset_peer_address(peer);
break;
}
diff --git a/src/protocols/ec25519_fhmqvc/handshake.c b/src/protocols/ec25519_fhmqvc/handshake.c
index 845e790..444ce32 100644
--- a/src/protocols/ec25519_fhmqvc/handshake.c
+++ b/src/protocols/ec25519_fhmqvc/handshake.c
@@ -136,7 +136,7 @@ static bool establish(fastd_peer_t *peer, const fastd_method_info_t *method, fas
pr_verbose("%I authorized as %P", remote_addr, peer);
if (!fastd_peer_claim_address(peer, sock, local_addr, remote_addr)) {
- pr_warn("can't set address %I which is used by a fixed peer", remote_addr);
+ pr_warn("can't establish session with %P[%I] as the address is used by another peer", peer, remote_addr);
fastd_peer_reset(peer);
return false;
}