diff --git a/package.json b/package.json index f1a0a85..7ce8ec7 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "arduino-create-agent-js-client", - "version": "2.5.0", + "version": "2.6.0", "description": "JS module providing discovery of the Arduino Create Plugin and communication with it", "main": "lib/index.js", "module": "es/index.js", diff --git a/src/firmware-updater.js b/src/firmware-updater.js index dad34a1..78240a7 100644 --- a/src/firmware-updater.js +++ b/src/firmware-updater.js @@ -1,10 +1,6 @@ import { BehaviorSubject } from 'rxjs'; -import { - takeUntil, - filter, - first -} from 'rxjs/operators'; import semverCompare from 'semver-compare'; +import { takeUntil, filter, first } from 'rxjs/operators'; import { fwupdaterSignatures, oldFwupdaterSignatures } from './signatures'; /* The status of the Firmware Updater Tool */ @@ -191,18 +187,6 @@ export default class FirmwareUpdater { } }); - let addresses = ''; - const rootCertificates = [{ - domain: 'arduino.cc', - port: 443 - }]; - - rootCertificates.forEach(address => { - if (address.domain && address.port) { - addresses += `-address ${address.domain}:${address.port} `; - } - }); - const [programmer, signature] = programmerFor(boardId); if (!this.loaderPath) { @@ -217,7 +201,7 @@ export default class FirmwareUpdater { hex: '', extra: { auth: { - password: `"${this.loaderPath}" -firmware "${this.firmwareVersionData.Path}" ${addresses}`, + password: `"${this.loaderPath}" -firmware "${this.firmwareVersionData.Path}"`, }, }, signature,