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

[FEATURE REQUEST] It is necessary to add proxy settings #1016

Open
4 tasks done
heheda123123 opened this issue May 10, 2023 · 9 comments
Open
4 tasks done

[FEATURE REQUEST] It is necessary to add proxy settings #1016

heheda123123 opened this issue May 10, 2023 · 9 comments
Assignees
Labels
needs-further-study new-feature A new feature that could be useful in WingetUI

Comments

@heheda123123
Copy link

heheda123123 commented May 10, 2023

Before submitting the issue

  • I have checked that the requested feature is not a duplicate or, if it is, it needs to be reopened
  • I have checked that I am running the latest version of WingetUI
  • I have checked the FAQ section
  • I have read the contributing guidelines and I agree with the Code of Conduct

Is your feature request related to a problem? Please describe.

In some countries, accessing scoop choco winget is already very slow, and you need to set a proxy when you use it normally. I hope wingetui can add the proxy setting function.
At the same time, wingetui itself also needs to access github, and it is very slow without proxy.

Describe the solution you'd like

add the proxy setting, Specify proxy settings when running the specified tool in the background commandline.
And use the proxy setting when WingetUI itsself access github.

@heheda123123
Copy link
Author

When wingetui is started, github will be accessed, I guess it is to detect updates. If you use tools such as proxifier, you can proxy this traffic. But the system proxy is used when using winget to install software in wingetui. It is best to add a proxy setting function, so that the proxy of various tools and wingetui itself can be used uniformly.
Now every time I use wingetui I need to turn on the global proxy in clash and proxifier.

@marticliment
Copy link
Owner

The issue with this feature is how external tools (winget.exe, choco,exe) can be configured to follow the wingetui proxy

@coolxitech
Copy link

Is there any other way besides manually setting proxy settings for related software?

@heheda123123
Copy link
Author

heheda123123 commented Oct 11, 2023

Is there any other way besides manually setting proxy settings for related software?

use proxifier

@coolxitech
Copy link

Is there any other way besides manually setting proxy settings for related software?除了手动设置相关软件的代理设置之外,还有没有其他方法?

use proxifier使用防腐剂

不如clash

@heheda123123
Copy link
Author

Is there any other way besides manually setting proxy settings for related software?除了手动设置相关软件的代理设置之外,还有没有其他方法?

use proxifier使用防腐剂

不如clash

clash得开tun才行,没proxifier灵活

@MC-dusk
Copy link

MC-dusk commented Dec 1, 2023

The issue with this feature is how external tools (winget.exe, choco,exe) can be configured to follow the wingetui proxy

主要winget,scoop这些不好配置代理,目前还是得TUN模式

@eizedev
Copy link

eizedev commented Dec 27, 2023

i love WinGetUI, thanks!

It would be great if proxy support for the package providers would be added. f.e. if configured a proxy server in the ui settings then it will also be forwarded to the package provider clis. or that WingetUI and the providers used by wingetui should support system proxy settings. Most of the providers have build in proxy support (http/socks, user/pass ...).
And WingetUI itself should support setting a proxy.

Most python libraries (f.e. requests, or urllib getproxies method) support http proxies.

In our environment a support for PAC files and proxy auto configuration would be great, f.e. with PyPAC.

Strange things or never ending loading anmiations happen, if WingetUI has no internet access ;-) (no error messages, no output command line ...)

Examples:
pip: python.exe -m pip install --upgrade pip --proxy 'http://proxy.example.org:8080'
scoop: scoop config proxy proxy.example.org:8080
choco: choco download somepkg --proxy="'value'" --proxy-user="'<user>'" --proxy-password="'<pwd>'" --proxy-bypass-list="'<comma separated, list>'" --proxy-bypass-on-local
winget (not integrated): microsoft/winget-cli#1776

In my corporate environment, WingetUI (sometimes) works since it uses the system proxy settings (or is it cached?). But none of the installations are working since the package providers used with wingetui will not use my configured proxy server.
If i use WingetUI on same device not in my corporate environment, it works.

@marticliment
Copy link
Owner

I will study that, it looks promising

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs-further-study new-feature A new feature that could be useful in WingetUI
Projects
None yet
Development

No branches or pull requests

5 participants