mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
We prefer ipv4, only use ipv6 if ipv4 is disabled. 3.0.59
This commit is contained in:
parent
b0227e0d22
commit
e045b0a619
7 changed files with 30 additions and 18 deletions
|
@ -52,7 +52,7 @@ SrsRtpConn::SrsRtpConn(SrsRtspConn* r, int p, int sid)
|
|||
_port = p;
|
||||
stream_id = sid;
|
||||
// TODO: support listen at <[ip:]port>
|
||||
listener = new SrsUdpListener(this, srs_any_address4listener(), p);
|
||||
listener = new SrsUdpListener(this, srs_any_address_for_listener(), p);
|
||||
cache = new SrsRtpPacket();
|
||||
pprint = SrsPithyPrint::create_caster();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue