do not unregister naked domain of non-custom domains only

This commit is contained in:
Girish Ramakrishnan
2016-09-05 18:40:22 -07:00
parent bc839d7f9b
commit c63c6f793c

View File

@@ -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);
}