Network Connection Proxies in Dart Editor

前端 未结 1 1693
遇见更好的自我
遇见更好的自我 2020-12-12 02:09

Eclipse has a \"Network Connections\" page in its preferences that allows one to use proxies for network connections, so if I am behind a firewall I can use these connection

相关标签:
1条回答
  • 2020-12-12 02:21

    You have to set environment variables

    https://www.dartlang.org/tools/editor/troubleshoot.html#pub-get-firewall

    http_proxy=http://<yourproxy>.<yourdomain>.com:9090/
    https_proxy=https://<yourproxy>.<yourdomain>.com:9090/
    no_proxy=localhost,127.0.0.0/8
    

    If your proxy needs authentication, the setup will look more like the following:

    http_proxy=http://<username>:<password>@<yourproxy>.<yourdomain>.com:9090/
    https_proxy=https://<username>:<password>@<yourproxy>.<yourdomain>.com:9090/
    

    DartEditor is no more

    To enable Dart Editor to check for updates, add the following to the DartEditor.ini file:

    -Dhttp.proxyHost=<yourproxy>.<yourdomain>.com
    -Dhttp.proxyPort=9090
    -Dhttps.proxyHost=<yourproxy>.<yourdomain>.com
    -Dhttps.proxyPort=9090
    

    If you need a user name and password for authentication, add:

    -Dhttp.proxyUser=<username>
    -Dhttp.proxyPassword=<passwordstring>
    -Dhttps.proxyUser=<username>
    -Dhttps.proxyPassword=<passwordstring>
    

    See also https://github.com/dart-lang/sdk/issues/24080

    0 讨论(0)
提交回复
热议问题