Skip to content

Commit 52a2f2e

Browse files
committed
Fix socket.io error
We no longer support self-signed certs, so if we cant connect 99% chance the daemon is off.
1 parent e552b78 commit 52a2f2e

File tree

3 files changed

+2
-5
lines changed

3 files changed

+2
-5
lines changed

app/Models/Node.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,6 @@ public static function guzzleRequest($node)
7979
'base_uri' => sprintf('%s://%s:%s/', $nodeData->scheme, $nodeData->fqdn, $nodeData->daemonListen),
8080
'timeout' => 10.0,
8181
'connect_timeout' => 5.0,
82-
'verify' => false,
8382
]);
8483

8584
return self::$guzzle[$node];

resources/lang/en/server.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
*/
1010

1111
'ajax' => [
12-
'socket_error' => 'We were unable to connect to the main Socket.IO server, there may be network issues currently. <br /><br />If this is your first time seeing this message it may be because you need to accept this servers SSL certificate. Please click this notification and accept the certificate.',
12+
'socket_error' => 'We were unable to connect to the main Socket.IO server, there may be network issues currently. The panel may not work as expected.',
1313
'socket_status' => 'This server\'s power status has changed to',
1414
'socket_status_crashed' => 'This server has been detected as CRASHED.',
1515
],

resources/views/layouts/master.blade.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,9 +49,7 @@
4949
$('#applyUpdate').removeClass('fa-circle-o-notch fa-spinner fa-spin').addClass('fa-question-circle').css({ color: '#FF9900' });
5050
if(typeof notifySocketError !== 'object') {
5151
notifySocketError = $.notify({
52-
message: '{!! trans('server.ajax.socket_error') !!}',
53-
url: 'https://{{ $node->fqdn }}:{{ $node->daemonListen }}',
54-
target: '_blank'
52+
message: '{!! trans('server.ajax.socket_error') !!}'
5553
}, {
5654
type: 'danger',
5755
delay: 0

0 commit comments

Comments
 (0)