try to fix travis CI compilation

This commit is contained in:
konstin 2015-08-15 15:10:30 +02:00
parent 1eb3b6f74e
commit c78abbddf7
2 changed files with 2 additions and 2 deletions

View File

@ -43,7 +43,7 @@
#endif
#include <sys/types.h>
constexpr uint8_t GetPublicAddress::m_stun_magic_cookie[4]; // make the linker happy
const uint8_t GetPublicAddress::m_stun_magic_cookie[4] = {0x21, 0x12, 0xA4, 0x42}; // make the linker happy
/** Creates a STUN request and sends it to a random STUN server selected from
* the list stored in the config file. See https://tools.ietf.org/html/rfc5389#section-6

View File

@ -40,7 +40,7 @@ class GetPublicAddress : public Protocol
std::string parseStunResponse();
// Constants
static constexpr uint8_t m_stun_magic_cookie[4] = {0x21, 0x12, 0xA4, 0x42};
static const uint8_t m_stun_magic_cookie[4];
static const int m_stun_server_port = 3478;
enum STATE