Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
lucadagati authored May 31, 2023
1 parent 1cd08e6 commit b425535
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 10 deletions.
6 changes: 3 additions & 3 deletions public/js/client2copy.js
Original file line number Diff line number Diff line change
Expand Up @@ -467,15 +467,15 @@ function getPeerGeoLocation() {
*/
function getSignalingServer() {
if (isHttps) {
return 'https://' + '192.168.44.181' + ':' + signalingServerPort;
return 'https://' + '212.189.207.199' + ':' + signalingServerPort;
// outside of localhost change it with YOUR-SERVER-DOMAIN
}
return (
'http' +
(location.hostname == 'localhost' ? '' : 's') +
(location.hostname == '212.189.207.199' ? '' : 's') +
'://' +
location.hostname +
(location.hostname == 'localhost' ? ':' + signalingServerPort : '')
(location.hostname == '212.189.207.199' ? ':' + signalingServerPort : '')
);
}

Expand Down
2 changes: 1 addition & 1 deletion public/js/clientO.js
Original file line number Diff line number Diff line change
Expand Up @@ -642,7 +642,7 @@ function getPeerGeoLocation() {
function getSignalingServer() {
if (isHttps) {
console.log("IS_HTTP");
return 'https://' + '192.168.44.181' + ':' + signalingServerPort;
return 'https://' + '212.189.207.199' + ':' + signalingServerPort;
// outside of localhost change it with YOUR-SERVER-DOMAIN
}
return (
Expand Down
6 changes: 3 additions & 3 deletions public/js/client_error.js
Original file line number Diff line number Diff line change
Expand Up @@ -457,15 +457,15 @@ function getPeerGeoLocation() {
*/
function getSignalingServer() {
if (isHttps) {
return 'https://' + '192.168.44.181' + ':' + signalingServerPort;
return 'https://' + '212.189.207.199' + ':' + signalingServerPort;
// outside of localhost change it with YOUR-SERVER-DOMAIN
}
return (
'http' +
(location.hostname == 'localhost' ? '' : 's') +
(location.hostname == '212.189.207.199' ? '' : 's') +
'://' +
location.hostname +
(location.hostname == 'localhost' ? ':' + signalingServerPort : '')
(location.hostname == '212.189.207.199' ? ':' + signalingServerPort : '')
);
}

Expand Down
6 changes: 3 additions & 3 deletions public/js_bak/client.js
Original file line number Diff line number Diff line change
Expand Up @@ -625,15 +625,15 @@ function getPeerGeoLocation() {
*/
function getSignalingServer() {
if (isHttps) {
return 'https://' + '192.168.44.181' + ':' + signalingServerPort;
return 'https://' + '212.189.207.199' + ':' + signalingServerPort;
// outside of localhost change it with YOUR-SERVER-DOMAIN
}
return (
'http' +
(location.hostname == 'localhost' ? '' : 's') +
(location.hostname == '212.189.207.199' ? '' : 's') +
'://' +
location.hostname +
(location.hostname == 'localhost' ? ':' + signalingServerPort : '')
(location.hostname == '212.189.207.199' ? ':' + signalingServerPort : '')
);
}

Expand Down

0 comments on commit b425535

Please sign in to comment.