zhuhaow / SpechtLite

A rule-based proxy for macOS
GNU General Public License v3.0
2.94k stars 376 forks source link

IP rules with ipv6 makes no difference #70

Open balthild opened 7 years ago

balthild commented 7 years ago

Configuration file

port: 8090

adapter:
  - id: ss-local
    type: socks5
    host: 127.0.0.1
    port: 1080

rule:
  ...

  - type: iplist
    adapter: direct
    file: ~/.SpechtLite/DirectIPList

  - type: all
    adapter: ss-local

~/.SpechtLite/DirectIPList

127.0.0.0/8
10.0.0.0/8
192.168.0.0/16
0:0:0:0:0:0:0:0/0 ( Match all IPv6 addresses. Also tried ::0/0 )

Log

2017/10/06 21:15:57:292  Request: ipv6.google.com.hk Type: SOCKS5Adapter Rule: <AllRule>

Expected behaviour:

ipv6.google.com.hk goes to direct adapter.

zhuhaow commented 7 years ago

Try if visiting ::1 will work.

NEKit does not send AAAA request when resolving domain name.

There is some simple fix but I'm not very interested in fixing it since I don't have an ipv6 env.