[Vtun-Commit] CVS: The file 'vtun/main.c' has been modified.
Status: Inactive
Brought to you by:
mtbishop
|
From: Bishop <mtbishop> - 2009-03-29 10:09:02
|
The following file was modified in vtun:
Name Old version New version Comment
---- ----------- ----------- -------
main.c 1.9.2.2 1.9.2.3
The accompanying log:
rfe2636157 - Permit a delayed UDP connection to overcome unpredictable
NAT ports.
The diff of the modified file(s):
--- main.c 7 Jan 2008 22:35:53 -0000 1.9.2.2
+++ main.c 29 Mar 2009 10:08:57 -0000 1.9.2.3
@@ -50,6 +50,9 @@
extern int optind,opterr,optopt;
extern char *optarg;
+/* for the NATHack bit. Is our UDP session connected? */
+int is_rmt_fd_connected=1;
+
int main(int argc, char *argv[], char *env[])
{
int svr, daemon, sock, dofork, fd, opt;
@@ -133,6 +136,8 @@
openlog("vtund", LOG_PID|LOG_NDELAY|LOG_PERROR, vtun.syslog);
}
+ clear_nat_hack_flags(svr);
+
if(!svr){
if( argc - optind < 2 ){
usage();
|