Skip to content

Commit 64d7d11

Browse files
authored
Retrieves the proxy or direct configuration from the registry
1 parent 738b7e8 commit 64d7d11

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

deploy.pas

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ function DownloadFile(const URL, DestFileName: String): Boolean;
191191
begin
192192
DownloadFile := false;
193193
UserAgent := ExtractFileName(ParamStr(0));
194-
HInet := InternetOpen(PChar(UserAgent), INTERNET_OPEN_TYPE_DIRECT, nil, nil, 0);
194+
HInet := InternetOpen(PChar(UserAgent), INTERNET_OPEN_TYPE_PRECONFIG, nil, nil, 0);
195195
try
196196
HURL := InternetOpenUrl(HInet, PChar(URL), nil, 0, INTERNET_FLAG_DONT_CACHE + INTERNET_FLAG_KEEP_CONNECTION, 0);
197197
if Assigned(HURL) then
@@ -435,7 +435,7 @@ destructor TMyDeploy.Destroy;
435435

436436
procedure TMyDeploy.WriteVersion;
437437
begin
438-
writeln('deploy 1.0 : Copyright (c) 2021 Yoann LAMY');
438+
writeln('deploy 1.1 : Copyright (c) 2021 Yoann LAMY');
439439
writeln();
440440
end;
441441

0 commit comments

Comments
 (0)