This commit is contained in:
Pasquale Boemio
2013-04-27 19:48:26 +02:00
parent 3c8d98ecd0
commit db9c58f58e
+1 -1
View File
@@ -267,7 +267,7 @@ WebSocket::pointer WebSocket::from_url(std::string url) {
} }
else if (sscanf(url.c_str(), "ws://%[^:]:%d", host, &port) == 2) { else if (sscanf(url.c_str(), "ws://%[^:]:%d", host, &port) == 2) {
} }
else if (sscanf(url.c_str(), "ws://%[^:]", host, &port) == 1) { else if (sscanf(url.c_str(), "ws://%[^:]", host) == 1) {
port = 80; port = 80;
} }
else { else {