Changed to using new Address Model, Implemented Setup, Some minor CSS changes
This commit is contained in:
@@ -5,10 +5,10 @@ namespace App\Console\Commands;
|
||||
use Illuminate\Console\Command;
|
||||
use Illuminate\Support\Facades\Log;
|
||||
|
||||
use App\Classes\Protocol\EMSI as EMSIClass;
|
||||
use App\Classes\Sock\SocketException;
|
||||
use App\Classes\Sock\SocketServer;
|
||||
|
||||
use App\Classes\Protocol\EMSI as EMSIClass;
|
||||
use App\Models\Setup;
|
||||
|
||||
class EMSIReceive extends Command
|
||||
{
|
||||
@@ -35,8 +35,8 @@ class EMSIReceive extends Command
|
||||
{
|
||||
Log::info('Listening for EMSI connections...');
|
||||
|
||||
$server = new SocketServer(60179,'0.0.0.0');
|
||||
$server->setConnectionHandler([new EMSIClass,'onConnect']);
|
||||
$server = new SocketServer(Setup::EMSI_PORT,Setup::EMSI_BIND);
|
||||
$server->setConnectionHandler([new EMSIClass(Setup::findOrFail(config('app.id'))),'onConnect']);
|
||||
|
||||
try {
|
||||
$server->listen();
|
||||
|
Reference in New Issue
Block a user