diff --git a/README.md b/README.md index e168bcac7..95a1baa7b 100644 --- a/README.md +++ b/README.md @@ -251,6 +251,10 @@ If you want server.js to use a different port (the default is 8088), set PORT in the server: export PORT=80 + +or add `--port` to your command-line: + + node server.js --logging --console --debug --port=80 A complete list of command-line options can be found in [server.js](server.js). diff --git a/my_modules/diskdump/lib/diskdump.js b/my_modules/diskdump/lib/diskdump.js index d5cb5881c..25820572f 100644 --- a/my_modules/diskdump/lib/diskdump.js +++ b/my_modules/diskdump/lib/diskdump.js @@ -2718,7 +2718,12 @@ DiskDump.prototype.convertToIMG = function() } } } - if (!fDebug && buf.length < 3000000) { // arbitrary size threshold between diskette images and hard disk images + /* + * Since there's no way (and rightly so) of setting fDebug via the API, I've added the check for + * fJSONComments as another way of disabling "branding" via the API; requesting an IMG file with comments + * is otherwise a nonsensical request. + */ + if (!fDebug && !this.fJSONComments && buf.length < 3000000) { // arbitrary size threshold between diskette images and hard disk images /* * Mimic the BPB test in convertToJSON(), because we don't want to blast an OEM string into non-DOS diskette images */