Enable binding ports for IPv6
This commit is contained in:
parent
d660d5a6df
commit
b65289af9f
@ -49,7 +49,7 @@ final class SocketServer {
|
|||||||
if (! extension_loaded('pcntl'))
|
if (! extension_loaded('pcntl'))
|
||||||
throw new SocketException(SocketException::CANT_ACCEPT,'Missing pcntl extension');
|
throw new SocketException(SocketException::CANT_ACCEPT,'Missing pcntl extension');
|
||||||
|
|
||||||
$this->server = socket_create(AF_INET,SOCK_STREAM,SOL_TCP);
|
$this->server = socket_create(AF_INET|AF_INET6,SOCK_STREAM,SOL_TCP);
|
||||||
|
|
||||||
if ($this->server === FALSE)
|
if ($this->server === FALSE)
|
||||||
throw new SocketException(SocketException::CANT_CREATE_SOCKET,socket_strerror(socket_last_error()));
|
throw new SocketException(SocketException::CANT_CREATE_SOCKET,socket_strerror(socket_last_error()));
|
||||||
|
@ -29,7 +29,7 @@ class Setup extends Model
|
|||||||
public const BINKP_OPT_MPWD = 1<<8; /* Multi-Password mode - not implemented */
|
public const BINKP_OPT_MPWD = 1<<8; /* Multi-Password mode - not implemented */
|
||||||
|
|
||||||
public const BINKP_PORT = 24554;
|
public const BINKP_PORT = 24554;
|
||||||
public const BINKP_BIND = '0.0.0.0';
|
public const BINKP_BIND = '::';
|
||||||
public const EMSI_PORT = 60179;
|
public const EMSI_PORT = 60179;
|
||||||
public const EMSI_BIND = self::BINKP_BIND;
|
public const EMSI_BIND = self::BINKP_BIND;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user