diff --git a/lib/config.js b/lib/config.js
index <HASH>..<HASH> 100644
--- a/lib/config.js
+++ b/lib/config.js
@@ -384,7 +384,7 @@ exports.extend = function extend(newConf) {
   };
   var isLocalUIUrl = function(url) {
     var host = getHostname(url);
-    return isWebUIHost() || !!config.pluginHostMap[host];
+    return isWebUIHost(host) || !!config.pluginHostMap[host];
   };
   config.isLocalUIUrl = isLocalUIUrl;
feat: Support custom the hostname of plugin by cli