Skip to content

Commit

Permalink
fix $_SERVER['GATEWAY_PORT']
Browse files Browse the repository at this point in the history
  • Loading branch information
walkor authored Oct 15, 2022
1 parent 8b892b7 commit 4921663
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/Gateway.php
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,10 @@ public function onWorkerStart()

$args = func_get_args();
$this->id = $args[0]->id;

$worker = func_get_arg(0);
$this->_gatewayPort = substr(strrchr($worker->getSocketName(),':'),1);

parent::onWorkerStart();
}
}
}

0 comments on commit 4921663

Please sign in to comment.