smoldot 2.0.24 → 2.0.26

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -174,7 +174,7 @@ function startLocalInstance(config, wasmModule, eventCallback) {
174
174
  case 4:
175
175
  case 5:
176
176
  case 6: {
177
- return config.forbidNonLocalWs ? 0 : 1;
177
+ return (config.forbidWs || config.forbidNonLocalWs) ? 0 : 1;
178
178
  }
179
179
  case 7: {
180
180
  return config.forbidWs ? 0 : 1;