raise-isayan / TunProxy

Android VPN interceptor to send HTTP and HTTPS traffic to a proxy
454 stars 162 forks source link

How to support https request #22

Open jihaifeng opened 7 months ago

jihaifeng commented 7 months ago

As the title,I have visit https://www.baidu.com but it report error for" Network is unreachable" , errno is 101, But the http request is ok。

D TunProxy-Native: PKT0: 0x60 D TunProxy-Native: TCP S fd00:1:fd00:1:fd00:1:fd00:1/41516 > 240e:e9:6002:15c:0:ff:b015:146f/443 seq 3048175580 ack 0 data 0 win 65535 uid 1010094 I TunProxy-Native: session is null, create new and send SYN I TunProxy-Native: TCP S fd00:1:fd00:1:fd00:1:fd00:1/41516 > 240e:e9:6002:15c:0:ff:b015:146f/443 seq 3048175580 ack 0 data 0 win 65535 uid 1010094 new session mss 9940 ws 8 window 16776960 W TunProxy-Native: TCP6 redirect to 240e:e9:6002:15c:0:ff:b015:146f/443 D TunProxy-Native: Socket connecting TCP-V6: 240e:e9:6002:15c:0:ff:b015:146f:443 len:28 E TunProxy-Native: Socket connect error 101: Network is unreachable

Two question is:

  1. Why https used ip V6 when I start the tunproxy
  2. Why the reuqest report error for erno 101

What can I do to fix the https request, I just need enable to HTTPS request success and responce is OK, Any suggest for me is very kindly. thanks