Skip to content

Commit 4921663

Browse files
authored
fix $_SERVER['GATEWAY_PORT']
1 parent 8b892b7 commit 4921663

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/Gateway.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,10 @@ public function onWorkerStart()
5656

5757
$args = func_get_args();
5858
$this->id = $args[0]->id;
59+
60+
$worker = func_get_arg(0);
61+
$this->_gatewayPort = substr(strrchr($worker->getSocketName(),':'),1);
62+
5963
parent::onWorkerStart();
6064
}
61-
}
65+
}

0 commit comments

Comments
 (0)