imgk / caddy-trojan

Caddy module for trojan proxy
GNU General Public License v3.0
197 stars 42 forks source link

Where/How to enable the IPV6 ? #9

Closed xh116 closed 3 years ago

xh116 commented 3 years ago

Sometimes ipv6 has better latency and even no bandwidth limitation. Caddy itself works well with ipv6 now, but seems not able to use Ipv6 for trojan module.

By the way, does it support gRPC protocol just like websocket?

imgk commented 3 years ago

I don’t think this module does not work properly with IPv6. Please check your settings.

Currently, there’s no plan to support gRPC. PR is welcomed.

xh116 commented 3 years ago

I am also running naiveproxy in caddy which work properly with IPV6.

Test trojan by: https://github.com/paradiseduo/Trojan and clash withipv6: true

image

Test Naiveproxy: Directly by official binary with SwitchyOmega.

image

and open google.com, type "my ip", it will show up the connected ip address.

imgk commented 3 years ago

There are two IP addresses mentioned in this issue. The first is the address of the proxy server and the second is the address of target website.

IP addresses showed in your test is the latter ones. Caddy module uses IPv4 to connect the target website while the naive proxy use IPv6. Currently there is no option for caddy module to configure the preference how caddy connects target website and I think it isn’t necessary.