Просмотр исходного кода

tun2socks: make the netif default. Allows forwarding routed packets.

ambrop7 15 лет назад
Родитель
Сommit
9521812f63
1 измененных файлов с 3 добавлено и 0 удалено
  1. 3 0
      tun2socks/tun2socks.c

+ 3 - 0
tun2socks/tun2socks.c

@@ -638,6 +638,9 @@ void lwip_init_job_hadler (void *unused)
     // set netif pretend TCP
     netif_set_pretend_tcp(&netif, 1);
     
+    // set netif default
+    netif_set_default(&netif);
+    
     // init listener
     struct tcp_pcb *l = tcp_new();
     if (!l) {