Browse Source

Fixed SRTP not wrapping outbound packets in DTLS

Staz M 5 years ago
parent
commit
3f5eecb2e0
2 changed files with 9 additions and 2 deletions
  1. 8 0
      include/rtc/rtp.hpp
  2. 1 2
      src/dtlssrtptransport.cpp

+ 8 - 0
include/rtc/rtp.hpp

@@ -0,0 +1,8 @@
+//
+// Created by staz on 8/12/20.
+//
+
+#ifndef WEBRTC_SERVER_RTP_HPP
+#define WEBRTC_SERVER_RTP_HPP
+
+#endif //WEBRTC_SERVER_RTP_HPP

+ 1 - 2
src/dtlssrtptransport.cpp

@@ -112,8 +112,7 @@ bool DtlsSrtpTransport::sendMedia(message_ptr message) {
 	}
 
 	message->resize(size);
-	outgoing(message);
-	return true;
+	return DtlsTransport::send(message);
 }
 
 void DtlsSrtpTransport::incoming(message_ptr message) {