1
1
mirror of https://github.com/pterodactyl/panel.git synced 2024-11-22 09:02:28 +01:00

Fix upload socket connection

This commit is contained in:
Dane Everitt 2016-01-01 18:13:34 -05:00
parent 46117afc77
commit 445d0eaa8d

View File

@ -64,7 +64,7 @@ $(window).load(function () {
var newFileContents; var newFileContents;
@can('upload-files', $server) @can('upload-files', $server)
var client = new BinaryClient('wss://{{ $node->fqdn }}:{{ $node->daemonListen }}/upload/', { var client = new BinaryClient('{{ $node->scheme === 'https' ? 'wss' : 'ws' }}://{{ $node->fqdn }}:{{ $node->daemonListen }}/upload/', {
chunkSize: 40960 chunkSize: 40960
}); });
// Wait for connection to BinaryJS server // Wait for connection to BinaryJS server