Skip to content

Commit 9e0da4a

Browse files
committed
chore: fix nice
1 parent 615b375 commit 9e0da4a

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/global.cpp

+4
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,8 @@ std::shared_future<void> Cleanup() { return impl::Init::Instance().cleanup(); }
9393

9494
void SetSctpSettings(SctpSettings s) { impl::Init::Instance().setSctpSettings(std::move(s)); }
9595

96+
#if !USE_NICE
97+
9698
UnhandledStunRequestCallback unboundStunCallback;
9799

98100
void InvokeUnhandledStunRequestCallback (const juice_mux_binding_request *info, void *user_ptr) {
@@ -107,6 +109,8 @@ void InvokeUnhandledStunRequestCallback (const juice_mux_binding_request *info,
107109
});
108110
}
109111

112+
#endif
113+
110114
void OnUnhandledStunRequest ([[maybe_unused]] std::string host, [[maybe_unused]] int port, UnhandledStunRequestCallback callback) {
111115
#if USE_NICE
112116
PLOG_WARNING << "BindStunListener is not supported with libnice, please use libjuice";

0 commit comments

Comments
 (0)