Codebase list golang-github-mattn-go-ieproxy / 5fcc6575-5f57-409e-8e32-6c11262eb4f4/main
New upstream snapshot. Debian Janitor 2 years ago
3 changed file(s) with 45 addition(s) and 16 deletion(s). Raw diff Collapse all Expand all
0 # These are supported funding model platforms
1
2 github: mattn # Replace with up to 4 GitHub Sponsors-enabled usernames e.g., [user1, user2]
3 patreon: # Replace with a single Patreon username
4 open_collective: # Replace with a single Open Collective username
5 ko_fi: # Replace with a single Ko-fi username
6 tidelift: # Replace with a single Tidelift platform-name/package-name e.g., npm/babel
7 community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry
8 liberapay: # Replace with a single Liberapay username
9 issuehunt: # Replace with a single IssueHunt username
10 otechie: # Replace with a single Otechie username
11 custom: # Replace with up to 4 custom sponsorship URLs e.g., ['link1', 'link2']
0 golang-github-mattn-go-ieproxy (0.0~git20191113.7c0f686-3) UNRELEASED; urgency=medium
0 golang-github-mattn-go-ieproxy (0.0~git20200406.439dd05-1) UNRELEASED; urgency=medium
11
22 [ Drew Parsons ]
33 * mark golang-github-mattn-go-ieproxy-dev as Multi-Arch: foreign
44
55 [ Debian Janitor ]
66 * Set upstream metadata fields: Bug-Database, Bug-Submit.
7 * New upstream snapshot.
78
8 -- Drew Parsons <dparsons@debian.org> Thu, 23 Jan 2020 11:56:34 +0800
9 -- Drew Parsons <dparsons@debian.org> Wed, 17 Nov 2021 14:12:52 -0000
910
1011 golang-github-mattn-go-ieproxy (0.0~git20191113.7c0f686-2) unstable; urgency=medium
1112
4141 autoDetect = ieCfg.fAutoDetect
4242 }
4343
44 // Try WinHTTP default proxy.
45 if defaultCfg, err := getDefaultProxyConfiguration(); err == nil {
46 defer globalFreeWrapper(defaultCfg.lpszProxy)
47 defer globalFreeWrapper(defaultCfg.lpszProxyBypass)
48
49 newProxy := StringFromUTF16Ptr(defaultCfg.lpszProxy)
50 if proxy == "" {
51 proxy = newProxy
52 }
53
54 newProxyByPass := StringFromUTF16Ptr(defaultCfg.lpszProxyBypass)
55 if proxyByPass == "" {
56 proxyByPass = newProxyByPass
44 if proxy == "" && !autoDetect{
45 // Try WinHTTP default proxy.
46 if defaultCfg, err := getDefaultProxyConfiguration(); err == nil {
47 defer globalFreeWrapper(defaultCfg.lpszProxy)
48 defer globalFreeWrapper(defaultCfg.lpszProxyBypass)
49
50 // Always set both of these (they are a pair, it doesn't make sense to set one here and keep the value of the other from above)
51 proxy = StringFromUTF16Ptr(defaultCfg.lpszProxy)
52 proxyByPass = StringFromUTF16Ptr(defaultCfg.lpszProxyBypass)
5753 }
5854 }
5955
167163 }
168164
169165 func readRegedit() (values regeditValues, err error) {
170 k, err := registry.OpenKey(registry.CURRENT_USER, `Software\Microsoft\Windows\CurrentVersion\Internet Settings`, registry.QUERY_VALUE)
166 var proxySettingsPerUser uint64 = 1 // 1 is the default value to consider current user
167 k, err := registry.OpenKey(registry.LOCAL_MACHINE, `Software\Policies\Microsoft\Windows\CurrentVersion\Internet Settings`, registry.QUERY_VALUE)
168 if err == nil {
169 //We had used the below variable tempPrxUsrSettings, because the Golang method GetIntegerValue
170 //sets the value to zero even it fails.
171 tempPrxUsrSettings, _, err := k.GetIntegerValue("ProxySettingsPerUser")
172 if err == nil {
173 //consider the value of tempPrxUsrSettings if it is a success
174 proxySettingsPerUser = tempPrxUsrSettings
175 }
176 k.Close()
177 }
178
179 var hkey registry.Key
180 if proxySettingsPerUser == 0 {
181 hkey = registry.LOCAL_MACHINE
182 } else {
183 hkey = registry.CURRENT_USER
184 }
185
186 k, err = registry.OpenKey(hkey, `Software\Microsoft\Windows\CurrentVersion\Internet Settings`, registry.QUERY_VALUE)
171187 if err != nil {
172188 return
173189 }