Giter Site home page Giter Site logo

Comments (4)

xljiulang avatar xljiulang commented on August 13, 2024

2.x版本在osx平台将使用http代理来拦截流量取代1.x版本的dns拦截流量,目前还处在beta阶段,当前已知问题为意外的访问http://127.0.0.1:38457会触发代理死循环。 see a2b6fcc

from fastgithub.

sunruoshi avatar sunruoshi commented on August 13, 2024

2.x版本在osx平台将使用http代理来拦截流量取代1.x版本的dns拦截流量,目前还处在beta阶段,当前已知问题为意外的访问http://127.0.0.1:38457会触发代理死循环。 see a2b6fcc

那就是会和其他代理冲突?

from fastgithub.

xljiulang avatar xljiulang commented on August 13, 2024

dns方案也会和其它dns冲突,同理代理方案也会和其它代理冲突。
不过代理有自动代理的pac脚本,这个脚本可以指定域名走哪个代理。
你可以编写pac脚本,保存在比如/home/proxy.pac,内容大概如下:

function FindProxyForURL(url, host){
    var proxy = 'PROXY 127.0.0.1:38457';
    if (shExpMatch(host, 'github.com')) return proxy;
    if (shExpMatch(host, 'githubstatus.com')) return proxy;
    if (shExpMatch(host, 'imgur.com')) return proxy;
    if (shExpMatch(host, 'v2ex.com')) return proxy;
    if (shExpMatch(host, 's3.amazonaws.com')) return proxy;
    if (shExpMatch(host, '*.cloudflare.com')) return proxy;
    if (shExpMatch(host, '*.fastgithub.com')) return proxy;
    if (shExpMatch(host, 'api.github.com')) return proxy;
    if (shExpMatch(host, 'gist.github.com')) return proxy;
    if (shExpMatch(host, '*.github.com')) return proxy;
    if (shExpMatch(host, '*.githubapp.com')) return proxy;
    if (shExpMatch(host, '*.githubassets.com')) return proxy;
    if (shExpMatch(host, '*.githubusercontent.com')) return proxy;
    if (shExpMatch(host, 'ajax.googleapis.com')) return proxy;
    if (shExpMatch(host, 'fonts.googleapis.com')) return proxy;
    if (shExpMatch(host, 'themes.googleusercontent.com')) return proxy;
    if (shExpMatch(host, '*.gravatar.com')) return proxy;
    if (shExpMatch(host, 'fonts.gstatic.com')) return proxy;
    if (shExpMatch(host, '*.imgur.com')) return proxy;
    if (shExpMatch(host, 'onedrive.live.com')) return proxy;
    if (shExpMatch(host, '*.v2ex.com')) return proxy;
    if (shExpMatch(host, '*.github.io')) return proxy;
    if (shExpMatch(host, '*.fastly.net')) return proxy;
    if (shExpMatch(host, '*.s3.amazonaws.com')) return proxy;
    if (shExpMatch(host, '*.*.imgur.com')) return proxy;
    if (shExpMatch(host, '*.onedrive.live.com')) return proxy;
    if (shExpMatch(host, '*.*.fastly.net')) return proxy;
    if (shExpMatch(host, '*.*.*.fastly.net')) return proxy;
    
    return 'PROXY {其它代理域名或ip}:{其它代理端口}';
}

然后在网络的自动代理里面填写file://home/proxy.pac

from fastgithub.

xljiulang avatar xljiulang commented on August 13, 2024

@sunruoshi v2.0.0-beta2已发布,你可以测试这个版本是否正常

from fastgithub.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.