mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-20 19:49:44 +00:00
Allow binding to an specific IP
This commit is contained in:
parent
6839001dc3
commit
ac6c3c7e69
4 changed files with 11 additions and 9 deletions
|
|
@ -32,8 +32,8 @@ class MinecraftInterface{
|
|||
var $dataName;
|
||||
private $socket;
|
||||
private $data;
|
||||
function __construct($server, $port = 25565, $listen = false, $client = true){
|
||||
$this->socket = new UDPSocket($server, $port, (bool) $listen);
|
||||
function __construct($server, $port = 25565, $listen = false, $client = false, $serverip = "0.0.0.0"){
|
||||
$this->socket = new UDPSocket($server, $port, (bool) $listen, $serverip);
|
||||
require("protocol/RakNet.php");
|
||||
require("protocol/packetName.php");
|
||||
require("protocol/current.php");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue