Parcourir la source

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

ambrop7 il y a 15 ans
Parent
commit
9521812f63
1 fichiers modifiés avec 3 ajouts et 0 suppressions
  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) {