diff --git a/src/apptask.js b/src/apptask.js index 43c6faf8f..bce5d9762 100644 --- a/src/apptask.js +++ b/src/apptask.js @@ -281,7 +281,7 @@ function unregisterSubdomain(app, location, callback) { assert.strictEqual(typeof callback, 'function'); // do not unregister bare domain because we show a error/cloudron info page there - if (location === '') { + if (!config.isCustomDomain() && location === '') { debugApp(app, 'Skip unregister of empty subdomain'); return callback(null); }