diff --git a/main.cpp b/main.cpp index 47e5a5b9..4dba900a 100644 --- a/main.cpp +++ b/main.cpp @@ -200,6 +200,7 @@ void* proxy( ) int ret=0; ssl_info *sslinfo1; sockinfo *tempinfo ; + sockinfo *tempinfo1; map::iterator it; map::iterator it1; map::iterator it3; @@ -413,6 +414,16 @@ void* proxy( ) } } + //本地连接 + if ( tempinfo->istype == 2 ) + { + if(socklist.count(tempinfo->tosock)>0) + { + tempinfo1 = socklist[tempinfo->tosock]; + tempinfo1->isconnectlocal=2; + } + } + } } //继续遍历