Add Protocol::StunReplay and Tests

This commit is contained in:
2026-08-05 22:31:54 +03:00
parent dfe1edf706
commit 49ac7b9dfc
3 changed files with 53 additions and 1 deletions
@@ -22,4 +22,13 @@ struct SignedMessage {
bool valid(unsigned char pub_key[crypto_sign_PUBLICKEYBYTES]);
};
struct StunReplay {
uint32_t addr; // ipv4 only support!
uint16_t port;
bool is_behind_symmetric_nat = false;
StunReplay(std::string ip, uint16_t port);
StunReplay(uint32_t ip, uint16_t port);
};
} // namespace Protocol