@@ -220,6 +220,9 @@ discard block |
||
| 220 | 220 | $this->process_all_connected_clients(); |
| 221 | 221 | } |
| 222 | 222 | |
| 223 | + /** |
|
| 224 | + * @param string $key |
|
| 225 | + */ |
|
| 223 | 226 | function stream_set_ssl_option($key, $value) { |
| 224 | 227 | stream_context_set_option($this->_stream_context, 'ssl', $key, $value); |
| 225 | 228 | } |
@@ -287,7 +290,7 @@ discard block |
||
| 287 | 290 | /** |
| 288 | 291 | * Проверяем слишком старые подключения и убиваем их |
| 289 | 292 | * |
| 290 | - * @param object|ClientDatum $connection |
|
| 293 | + * @param ClientDatum $connection |
|
| 291 | 294 | * |
| 292 | 295 | * @return bool |
| 293 | 296 | */ |
@@ -464,6 +467,9 @@ discard block |
||
| 464 | 467 | } |
| 465 | 468 | } |
| 466 | 469 | |
| 470 | + /** |
|
| 471 | + * @param ClientDatum $connect |
|
| 472 | + */ |
|
| 467 | 473 | function check_requested_host_in_accepted_list($connect) { |
| 468 | 474 | if (!isset($this->_settings->accepted_hosts)) { |
| 469 | 475 | return true; |