Add Protocol::StunReplay and Tests
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user