Skip to content

Commit

Permalink
更新版本号
Browse files Browse the repository at this point in the history
  • Loading branch information
velade committed Jan 12, 2022
1 parent 54a0110 commit 80cf8a2
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions velws.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ class WSS
protected $sslcert = __DIR__ . '/cert/cert.pem';
protected $sslkey = __DIR__ . '/cert/key.pem';
protected $sslfullchain = '';
protected $version = "1.1";

protected $server;
protected $ssl;
Expand Down Expand Up @@ -48,7 +49,7 @@ public function __construct($options = []){
}

protected function conn(){
echo "\033cVelWS WSS Server v1.0 by VelHLKJ".PHP_EOL." ";
echo "\033cVelWS WSS Server v{$this->version} by VelHLKJ".PHP_EOL." ";
$ssl_context = stream_context_create($this->ssl);
$this->tryWriteLog("Init","Creating SSL context.");
$this->tryWriteLog("Init","Creating WSS server.");
Expand Down Expand Up @@ -239,7 +240,7 @@ public function tryWriteLog($type,$message){
class WS extends WSS {
protected $transport = "tcp";
protected function conn(){
echo "\033cVelWS WS Server v1.0 by VelHLKJ".PHP_EOL." ";
echo "\033cVelWS WS Server v{$this->version} by VelHLKJ".PHP_EOL." ";
$this->tryWriteLog("Init","Creating WS server.");
if(!$this->server = stream_socket_server("{$this->transport}://{$this->host}:{$this->port}",$errno,$errstr,STREAM_SERVER_BIND | STREAM_SERVER_LISTEN)){
$this->echoMsg("System","Server startup failed! - $errstr ($errno)","red");
Expand Down

0 comments on commit 80cf8a2

Please sign in to comment.