Skip to content

Commit

Permalink
Fixed ssl server
Browse files Browse the repository at this point in the history
  • Loading branch information
andot committed Nov 15, 2016
1 parent 9191f06 commit 1cc155d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Hprose/Swoole/Http/Server.php
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ private function parseUrl($uri) {
public function __construct($uri, $mode = SWOOLE_BASE) {
parent::__construct();
$url = $this->parseUrl($uri);
$this->server = new swoole_http_server($url->host, $url->port, $mode, $result->type);
$this->server = new swoole_http_server($url->host, $url->port, $mode, $url->type);
}
public function set($settings) {
$this->settings = array_replace($this->settings, $settings);
Expand Down
2 changes: 1 addition & 1 deletion src/Hprose/Swoole/WebSocket/Server.php
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ private function parseUrl($uri) {
public function __construct($uri, $mode = SWOOLE_BASE) {
parent::__construct();
$url = $this->parseUrl($uri);
$this->server = new swoole_websocket_server($url->host, $url->port, $mode, $result->type);
$this->server = new swoole_websocket_server($url->host, $url->port, $mode, $url->type);
}
public function set($settings) {
$this->settings = array_replace($this->settings, $settings);
Expand Down

0 comments on commit 1cc155d

Please sign in to comment.