mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-08-15 08:53:07 +09:00
Issue #1991 - backport Mozilla bug 1266667
This commit is contained in:
parent
536099d86b
commit
b4c5ebf00a
13 changed files with 85 additions and 7 deletions
|
|
@ -149,6 +149,7 @@ TCPSocketParent::RecvOpenBind(const nsCString& aRemoteHost,
|
|||
const nsCString& aLocalAddr,
|
||||
const uint16_t& aLocalPort,
|
||||
const bool& aUseSSL,
|
||||
const bool& aReuseAddrPort,
|
||||
const bool& aUseArrayBuffers,
|
||||
const nsCString& aFilter)
|
||||
{
|
||||
|
|
@ -184,6 +185,10 @@ TCPSocketParent::RecvOpenBind(const nsCString& aRemoteHost,
|
|||
return true;
|
||||
}
|
||||
|
||||
// in most cases aReuseAddrPort is false, but ICE TCP needs
|
||||
// sockets options set that allow addr/port reuse
|
||||
socketTransport->SetReuseAddrPort(aReuseAddrPort);
|
||||
|
||||
PRNetAddr prAddr;
|
||||
if (PR_SUCCESS != PR_InitializeNetAddr(PR_IpAddrAny, aLocalPort, &prAddr)) {
|
||||
FireInteralError(this, __LINE__);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue