MoGuangYu / Surfing

为简便 Clash 服务的 Magisk 与 KernelSU 模块。
GNU General Public License v3.0
511 stars 21 forks source link

直接设置白名单会存在一些问题 #1

Closed setcurl closed 1 year ago

setcurl commented 1 year ago

proxy_mode="whitelist" 设置这个后会影响到其他未添加到白名单的应用,比如QQ加载图片(头像)慢,快手刷视频卡顿

MoGuangYu commented 1 year ago

whitelist 数值只代理 user_packages_list=() 里面的应用,确定没错吗

setcurl commented 1 year ago

whitelist 数值只代理 user_packages_list=() 里面的应用,确定没错吗

我确定没错

setcurl commented 1 year ago

whitelist 数值只代理 user_packages_list=() 里面的应用,确定没错吗

我确定没错 Screenshot_2023-09-01-16-39-48-778_com tencent mm

MoGuangYu commented 1 year ago

whitelist 数值只代理 user_packages_list=() 里面的应用,确定没错吗

我确定没错

经测试,确实会导致卡顿,向上游Issues吧

MoGuangYu commented 1 year ago

whitelist 数值只代理 user_packages_list=() 里面的应用,确定没错吗

我确定没错 Screenshot_2023-09-01-16-39-48-778_com tencent mm

刚刚看见图片,稍等我今晚尝试解决

setcurl commented 1 year ago

whitelist 数值只代理 user_packages_list=() 里面的应用,确定没错吗

我确定没错 Screenshot_2023-09-01-16-39-48-778_com tencent mm

刚刚看见图片,稍等我今晚尝试解决

好的👌

MoGuangYu commented 1 year ago

已解决,替换config.yaml中的dns配置即可


  enable: true
  ipv6: true
  listen: :0.0.0.0:1053
  enhanced-mode: redir-host
  prefer-h3: true
  nameserver-policy:
    "geosite:cn": 
      - 119.29.29.29
      - 223.5.5.5
  nameserver:
    - https://doh.sb/dns-query
    - https://dns.google/dns-query
    - https://doh.dns.sb/dns-query```
setcurl commented 1 year ago

已解决,替换config.yaml中的dns配置即可

  enable: true
  ipv6: true
  listen: :0.0.0.0:1053
  enhanced-mode: redir-host
  prefer-h3: true
  nameserver-policy:
    "geosite:cn": 
      - 119.29.29.29
      - 223.5.5.5
  nameserver:
    - https://doh.sb/dns-query
    - https://dns.google/dns-query
    - https://doh.dns.sb/dns-query```

感谢大佬,能给个收款码不😄不过我还想提个需求,就是黑白名单能不能在web后台或者app搞个可视化选择呢,我感觉这样很方便,能实现嘛

setcurl commented 1 year ago

已解决,替换config.yaml中的dns配置即可

  enable: true
  ipv6: true
  listen: :0.0.0.0:1053
  enhanced-mode: redir-host
  prefer-h3: true
  nameserver-policy:
    "geosite:cn": 
      - 119.29.29.29
      - 223.5.5.5
  nameserver:
    - https://doh.sb/dns-query
    - https://dns.google/dns-query
    - https://doh.dns.sb/dns-query```

感谢大佬,能给个收款码不😄不过我还想提个需求,就是黑白名单能不能在web后台或者app搞个可视化选择呢,我感觉这样很方便,能实现嘛

setcurl commented 1 year ago

已解决,替换config.yaml中的dns配置即可

  enable: true
  ipv6: true
  listen: :0.0.0.0:1053
  enhanced-mode: redir-host
  prefer-h3: true
  nameserver-policy:
    "geosite:cn": 
      - 119.29.29.29
      - 223.5.5.5
  nameserver:
    - https://doh.sb/dns-query
    - https://dns.google/dns-query
    - https://doh.dns.sb/dns-query```

佬,我连接wifi后,改成你修改的配置系统直接没法联网了,流量是正常的,我刚刚换成wifi还以为是网络问题,另一台手机都是正常的

MoGuangYu commented 1 year ago

你的意思是流量正常,wifi不行吗

setcurl commented 1 year ago

你的意思是流量正常,wifi不行吗

setcurl commented 1 year ago

你的意思是流量正常,wifi不行吗

我找到了好几个项目,发现除了box_for_magisk不会让非白名单受到影响,你改完的那个dns会影响到wifi我把dns配置复制过来wifi和数据都正常了

 enable: true
 ipv6: true
 listen: 0.0.0.0:1053
 use-hosts: true
 enhanced-mode: fake-ip
 fake-ip-range: 198.18.0.1/16
 fake-ip-filter:
   - '*.lan'
 default-nameserver:
   - 114.114.114.114
   - 114.114.115.115
 nameserver:
   - 114.114.114.114
   - 114.114.115.115 

我也不知道为什么,因为我不会配置,你觉得这个dns配置还有哪里需要改改吗