wzw369
V2EX  ›  问与答

clash 使 hosts 文件失效,请问怎么办呀

  •  
  •   wzw369 · Sep 16, 2022 · 6938 views
    This topic created in 1359 days ago, the information mentioned may be changed or developed.
    clash 0.19.25
    win10
    在 hosts 里面写了一些规则,但是没有用
    3 replies    2022-09-16 11:54:15 +08:00
    my101du
        1
    my101du  
       Sep 16, 2022
    打开网络设置里的“代理服务器设置” 然后在“手动代理设置”里面的“排除”输入框里,把 hosts 文件的域名添加进去就可以了
    godspeedyou
        2
    godspeedyou  
       Sep 16, 2022   ❤️ 1
    在配置文件里添加自定义的 hosts
    hosts:
    'www.xxx.com': '127.0.0.1'

    或者直接关闭 dns
    dns:
    enable: false
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   1551 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 32ms · UTC 16:42 · PVG 00:42 · LAX 09:42 · JFK 12:42
    ♥ Do have faith in what you're doing.