mirror of
https://github.com/alibaba/anyproxy.git
synced 2025-08-04 21:39:04 +00:00
add support for all ports
This commit is contained in:
@@ -176,7 +176,8 @@ seajs.use(['$','Underscore' ,'Backbone'], function($, _, Backbone) {
|
||||
alert("WebSocket is required. Please use a modern browser.");
|
||||
return;
|
||||
}
|
||||
var dataSocket = new WebSocket("ws://127.0.0.1:8003");
|
||||
var socketPort = $("#socketPort").val() || "8003",
|
||||
dataSocket = new WebSocket("ws://127.0.0.1:" + socketPort);
|
||||
dataSocket.onopen = function(){}
|
||||
|
||||
dataSocket.onmessage = function(event){
|
||||
|
||||
Reference in New Issue
Block a user