diff --git a/src/apps/common/apputils.h b/src/apps/common/apputils.h index a0f0ac5..11a6e5d 100644 --- a/src/apps/common/apputils.h +++ b/src/apps/common/apputils.h @@ -58,10 +58,6 @@ extern int IS_TURN_SERVER; #define OPENSSL_FIRST_ALPN_VERSION (0x10002003L) -#define STUN_ALPN "stun.nat-discovery" -#define TURN_ALPN "stun.turn" -#define HTTP_ALPN "http/1.1" - #if OPENSSL_VERSION_NUMBER >= OPENSSL_FIRST_ALPN_VERSION #define ALPN_SUPPORTED 1 #else diff --git a/src/apps/relay/mainrelay.c b/src/apps/relay/mainrelay.c index 75c587b..67cc9dc 100644 --- a/src/apps/relay/mainrelay.c +++ b/src/apps/relay/mainrelay.c @@ -35,6 +35,16 @@ static int use_lt_credentials = 0; static int anon_credentials = 0; +////// ALPN ////////// + +#if ALPN_SUPPORTED + +char STUN_ALPN[128] = "stun.nat-discovery"; +char TURN_ALPN[128] = "stun.turn"; +char HTTP_ALPN[128] = "http/1.1"; + +#endif + ////// TURNDB ////////////// #if defined(TURNDB)