elkanah
V2EX  ›  问与答

请教一下大家怎么往pac文件里添加网址?

  •  
  •   elkanah · Jul 15, 2013 · 2113 views
    This topic created in 4770 days ago, the information mentioned may be changed or developed.
    pac文件当然没有覆盖到完完全全,有些网站照样是需要翻墙才能访问的,但是他本身并不在pac文件里,请问遇到这样的情况时该怎么向里面添加? THX
    2 replies    1970-01-01 08:00:00 +08:00
    Maninlab
        1
    Maninlab  
       Jul 15, 2013
    COW 自动增加~ 论坛搜索
    0racleTink
        2
    0racleTink  
       Jul 15, 2013
    #!/bin/bash
    domain=$1
    ed -s /var/root/autoproxy.pac << EOF
    /\/\/added by hand/a
    dnsDomainIs(host, "${domain}") ||
    .
    w
    EOF

    sudo chmod +x /usr/bin/fuckgfw

    apt-get install ed

    fuckgfw www.twitter.com
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2742 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 25ms · UTC 11:22 · PVG 19:22 · LAX 04:22 · JFK 07:22
    ♥ Do have faith in what you're doing.