elkanah
V2EX  ›  问与答

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

  •  
  •   elkanah · Jul 15, 2013 · 2232 views
    This topic created in 4863 days ago, the information mentioned may be changed or developed.
    pac文件当然没有覆盖到完完全全,有些网站照样是需要翻墙才能访问的,但是他本身并不在pac文件里,请问遇到这样的情况时该怎么向里面添加? THX
    2 replies  •  1970-01-01 08:00:00 +08:00
    Maninlab
    Maninlab
    Jul 15, 2013
    1
    COW 自动增加~ 论坛搜索
    Choutreeman
    Choutreeman
    Jul 15, 2013
    2
    #!/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   ·   Privacy   ·   Solana   ·   727 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 26ms · UTC 19:35 · PVG 03:35 · LAX 11:35 · JFK 14:35
    ♥ Do have faith in what you're doing.