From c63c6f793cd631df429539ba3f8ca740225b6da6 Mon Sep 17 00:00:00 2001 From: Girish Ramakrishnan Date: Mon, 5 Sep 2016 18:40:22 -0700 Subject: [PATCH] do not unregister naked domain of non-custom domains only --- src/apptask.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); }