瀏覽代碼

websocket: example must listen on ports 80 and 443

otherwise the code below always matches:

   if ($Rp != 80 && $Rp != 443) {
Дилян Палаузов 2 年之前
父節點
當前提交
3112e49aac
共有 1 個文件被更改,包括 3 次插入0 次删除
  1. 3 0
      src/modules/websocket/doc/websocket_admin.xml

+ 3 - 0
src/modules/websocket/doc/websocket_admin.xml

@@ -44,6 +44,8 @@
 	<programlisting><![CDATA[
 ...
 tcp_accept_no_cl=yes
+listen=tcp:127.0.0.17:80
+listen=tls:127.0.0.17:443
 ...
 loadmodule "sl.so"
 loadmodule "xhttp.so"
@@ -135,6 +137,7 @@ event_route[xhttp:request] {
 ...
 loadmodule "sl.so"
 loadmodule "tm.so"
+loadmodule "xhttp.so"
 ...
 loadmodule "websocket.so"
 ...