Преглед изворни кода

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

ambrop7 пре 15 година
родитељ
комит
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
     // set netif pretend TCP
     netif_set_pretend_tcp(&netif, 1);
     netif_set_pretend_tcp(&netif, 1);
     
     
+    // set netif default
+    netif_set_default(&netif);
+    
     // init listener
     // init listener
     struct tcp_pcb *l = tcp_new();
     struct tcp_pcb *l = tcp_new();
     if (!l) {
     if (!l) {