refactor: refine code

This commit is contained in:
avwo
2021-10-06 09:55:51 +08:00
parent 188ce07553
commit d00566210c
+1 -1
View File
@@ -1082,7 +1082,7 @@ module.exports = function(socket, next, isWebPort) {
key = requestCert ? ':' + domain : domain;
var plugin;
if (useSNI && !socket.isLocalUIUrl) {
socket.curUrl = 'https://' + useSNI;
socket.curUrl = socket.fullUrl = 'https://' + useSNI;
plugin = rules.resolveSNICallback(socket);
if (plugin) {
if (socket.rules) {