Commit db4dc1afc59a36c23e2fe24cceecff91973085f8

Authored by Adhidarma Hadiwinoto
1 parent e744e74308
Exists in master

Only connect gateway with url begin with ws://

Showing 1 changed file with 1 additions and 0 deletions Side-by-side Diff

... ... @@ -15,6 +15,7 @@ const connectAll = (xidFromCaller) => {
15 15 .filter((gateway) => !gateway.disabled
16 16 && gateway.name
17 17 && gateway.url
  18 + && (gateway.url.indexOf('ws://') === 0)
18 19 && ((new URL(gateway.url) || {}).protocol === 'ws:'));
19 20  
20 21 if (debugAllGatewaysFromConfig) {