Skip to content

Commit

Permalink
1.37
Browse files Browse the repository at this point in the history
  • Loading branch information
dosgo committed May 25, 2016
1 parent cd25658 commit 13c5a77
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@

using namespace std;
//string VER = "1.35-(2016/5/13)";
char VER[24]= "1.36-(2016/5/14)";
char VER[24]= "1.37-(2016/5/25)";

char s_name[255]="ngrokd.ngrok.com";
int s_port= 443;
Expand Down
2 changes: 1 addition & 1 deletion ngrok-c.depend
Original file line number Diff line number Diff line change
Expand Up @@ -830,7 +830,7 @@
"mytime.h"
"sslbio.h"

1463111740 source:d:\c\ngrok-c\ngrok.cpp
1464162210 source:d:\c\ngrok-c\ngrok.cpp
"config.h"
<string>
<windows.h>
Expand Down
6 changes: 6 additions & 0 deletions ngrok.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -283,6 +283,12 @@ int RemoteToLocal(ssl_info *sslinfo1,sockinfo *tempinfo1,map<int, sockinfo*>::it
}

int ConnectLocal(ssl_info *sslinfo,map<int, sockinfo*>::iterator *it1,sockinfo *tempinfo1,map<int,sockinfo*>*socklist,map<string,TunnelReq*> *tunneladdr){
//避免指针为空崩溃
if(sslinfo==NULL){
clearsock( (*it1)->first, tempinfo1 );
(*socklist).erase((*it1)++);
return -1;
}
int readlen;
#if WIN32
unsigned __int64 packlen;
Expand Down

0 comments on commit 13c5a77

Please sign in to comment.