Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
commands:
01_default_website_disable:
test: cmd /c "if exist C:\\Users\\Public\\initialized (exit 1) else (exit 0)"
command: C:\Windows\System32\inetsrv\appcmd.exe set config "Default Web Site" -section:system.webServer/httpLogging /dontLog:"True" /commit:apphost
ignoreErrors: true
02_install_websockets_feature:
test: cmd /c "if exist C:\\Users\\Public\\initialized (exit 1) else (exit 0)"
command: C:\Windows\system32\DISM.EXE /enable-feature /online /featureName:"IIS-WebSockets"
ignoreErrors: true
03_setting_firewall_for_websocket_port:
test: cmd /c "if exist C:\\Users\\Public\\initialized (exit 1) else (exit 0)"
command: netsh advfirewall firewall add rule name="World Wide Web Socket Port" dir=in action=allow protocol=TCP localport=8000
ignoreErrors: true
04_initializing:
test: cmd /c "if exist C:\\Users\\Public\\initialized (exit 1) else (exit 0)"
command: copy NUL C:\\Users\\Public\\initialized
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
option_settings:
aws:elasticbeanstalk:environment:
LoadBalancerType: application
2 changes: 1 addition & 1 deletion websocket-sharp/Server/WebSocketServer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -618,7 +618,7 @@ private void init (string hostname, System.Net.IPAddress address, int port, bool
private void processRequest (TcpListenerWebSocketContext context)
{
var uri = context.RequestUri;
if (uri == null || uri.Port != _port) {
if (uri == null) {
context.Close (HttpStatusCode.BadRequest);
return;
}
Expand Down