Skip to content

Commit

Permalink
moved code blocks, new option --manual-tun
Browse files Browse the repository at this point in the history
  • Loading branch information
wangyu- committed Aug 20, 2018
1 parent e856b51 commit 07608b9
Show file tree
Hide file tree
Showing 3 changed files with 44 additions and 625 deletions.
10 changes: 5 additions & 5 deletions main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -104,25 +104,25 @@ int main(int argc, char *argv[])
}
}

g_fec_mode=0;
//g_fec_mode=0;

process_arg(argc,argv);

delay_manager.set_capacity(delay_capacity);
local_ip_uint32=inet_addr(local_ip);
remote_ip_uint32=inet_addr(remote_ip);
//local_ip_uint32=inet_addr(local_ip);
//remote_ip_uint32=inet_addr(remote_ip);
sub_net_uint32=inet_addr(sub_net);

if(strlen(tun_dev)==0)
{
sprintf(tun_dev,"tun%u",get_true_random_number()%1000);
sprintf(tun_dev,"tun%u",get_fake_random_number()%1000);
}
mylog(log_info,"using interface %s\n",tun_dev);
/*if(tun_mtu==0)
{
tun_mtu=g_fec_mtu;
}*/
if(client_or_server==client_mode)
if(program_mode==client_mode)
{
tun_dev_client_event_loop();
}
Expand Down
Loading

0 comments on commit 07608b9

Please sign in to comment.