diff --git a/lib/index.js b/lib/index.js
index <HASH>..<HASH> 100644
--- a/lib/index.js
+++ b/lib/index.js
@@ -141,7 +141,7 @@ function tunnelProxy(server, proxy) {
         delete headers[pluginMgr.HOST_PORT_HEADER];
       }
       
-      var realUrl = _rules.rule && _rules.rule.url;
+      var realUrl = _rules.rule && _rules.rule.url.replace('https:', 'tunnel:');
       if (/^tunnel:\/\//.test(realUrl) && realUrl != tunnelUrl) {
         tunnelUrl = realUrl;
         data.realUrl = realUrl.replace('tunnel://', '');
refactor: Change https: to tunnel: