Fix due to the modified WsStream.cs

This commit is contained in:
sta
2012-12-11 15:49:01 +09:00
parent daeaebcc4b
commit 093a0a102b
64 changed files with 105 additions and 61 deletions

View File

@@ -67,8 +67,18 @@ namespace WebSocketSharp.Server {
init();
}
public WebSocketServer(int port, bool secure)
: this(System.Net.IPAddress.Any, port, secure)
{
}
public WebSocketServer(System.Net.IPAddress address, int port)
: base(address, port)
: this(address, port, port == 443 ? true : false)
{
}
public WebSocketServer(System.Net.IPAddress address, int port, bool secure)
: base(address, port, "/", secure)
{
init();
}
@@ -112,7 +122,7 @@ namespace WebSocketSharp.Server {
protected override void AcceptWebSocket(TcpClient client)
{
var context = client.AcceptWebSocket();
var context = client.AcceptWebSocket(IsSecure);
var socket = context.WebSocket;
var path = context.Path.UrlDecode();