Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Simple proxy detection support #1404

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

dgolovin
Copy link
Contributor

No description provided.

@dgolovin dgolovin requested a review from jrichter1 April 26, 2018 06:32
@codecov-io
Copy link

codecov-io commented Apr 26, 2018

Codecov Report

Merging #1404 into master will decrease coverage by 0.7%.
The diff coverage is 82.22%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #1404      +/-   ##
==========================================
- Coverage   92.57%   91.87%   -0.71%     
==========================================
  Files          47       47              
  Lines        4929     5021      +92     
  Branches      551      871     +320     
==========================================
+ Hits         4563     4613      +50     
- Misses        366      373       +7     
- Partials        0       35      +35
Impacted Files Coverage Δ
browser/services/request.js 84.37% <82.22%> (-13.41%) ⬇️
browser/model/devstudio-autoinstall.js 97.29% <0%> (-2.71%) ⬇️
browser/services/platform.js 97.39% <0%> (-2.23%) ⬇️
browser/pages/install/controller.js 91.86% <0%> (-1.75%) ⬇️
browser/model/helpers/downloader.js 95.53% <0%> (-1.68%) ⬇️
browser/model/che.js 95% <0%> (-1.62%) ⬇️
browser/model/jdk-install.js 93.78% <0%> (-1.51%) ⬇️
browser/pages/account/controller.js 98.61% <0%> (-1.39%) ⬇️
browser/model/cdk.js 97% <0%> (-1.15%) ⬇️
browser/model/devstudio-p2-zip.js 64.4% <0%> (-1.12%) ⬇️
... and 25 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update f7e90e4...b30c98a. Read the comment docs.

@dgolovin
Copy link
Contributor Author

test this

Copy link
Collaborator

@jrichter1 jrichter1 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

SSL proxy works. Unit tests for proxy would be welcome.

And btw cygwin mirror is down so build is red

if(this.electron) {
this.electron.remote.getCurrentWindow().webContents.session.resolveProxy("https://google.com", function(p){
//parse PROXY XXX.XXX.XXX.XXX:XXXX;
let proxy = p.replace(/(PROXY|DIRECT)/g,'').replace(/;/g,'').replace(/ /g,'');
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you merge these replace calls?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@jrichter1 sure

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants