mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2026-06-20 15:22:22 +08:00
完善ipv6网络适配
This commit is contained in:
@@ -274,7 +274,7 @@ static bool is_rtcp(char *buf) {
|
||||
}
|
||||
|
||||
static string getPeerAddress(RTC::TransportTuple *tuple){
|
||||
return SockUtil::inet_ntoa(((struct sockaddr_in *)tuple)->sin_addr) + ":" + to_string(ntohs(((struct sockaddr_in *)tuple)->sin_port));
|
||||
return SockUtil::inet_ntoa(tuple);
|
||||
}
|
||||
|
||||
void WebRtcTransport::inputSockData(char *buf, int len, RTC::TransportTuple *tuple) {
|
||||
|
||||
Reference in New Issue
Block a user