]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
fix hardcoded host and port
authorSeven Du <dujinfang@gmail.com>
Tue, 4 Jun 2013 00:21:34 +0000 (08:21 +0800)
committerTravis Cross <tc@traviscross.com>
Fri, 7 Jun 2013 04:57:43 +0000 (04:57 +0000)
htdocs/portal/index.html

index 5df175e1270b703225176d69a791e3249b5b4984..02a92eceb87d8263bd4d94da201be9bb1f020b6f 100644 (file)
 
        <script type="text/javascript">
 
-       var socket = new WebSocket("ws://localhost:8086/socket", "websocket");
+       var port = document.location.port;
+       // var port = 8081; // for test
+       var socket = new WebSocket("ws://" + document.location.hostname + ":" + port + "/socket", "websocket");
 
        try {
                socket.onopen = function() {