Skip to content

Commit 9d7b784

Browse files
committed
Fix typo
1 parent 13ac175 commit 9d7b784

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

Source/BrookHTTPServer.pas

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1015,28 +1015,28 @@ procedure TBrookHTTPServer.DoOpen;
10151015
FSecurity.Validate;
10161016
if FHostName <> EmptyStr then
10171017
begin
1018-
if not Assigned(sg_httpsrv_tls_listen3) then
1018+
if not Assigned(sg_httpsrv_tls_listen4) then
10191019
raise ENotSupportedException.Create(SBrookTLSNotAvailable);
1020-
FActive := sg_httpsrv_tls_listen3(FHandle,
1020+
FActive := sg_httpsrv_tls_listen4(FHandle,
10211021
M.ToCNullableString(FSecurity.PrivateKey),
10221022
M.ToCNullableString(FSecurity.PrivatePassword),
10231023
M.ToCNullableString(FSecurity.Certificate),
10241024
M.ToCNullableString(FSecurity.Trust),
10251025
M.ToCNullableString(FSecurity.DHParams),
1026-
M.ToCNullableString(FSecurity.Priorities), FPort, FThreaded);
1026+
M.ToCNullableString(FSecurity.Priorities), M.ToCString(FHostName),
1027+
FPort, FBacklog, FThreaded);
10271028
end
10281029
else
10291030
begin
1030-
if not Assigned(sg_httpsrv_tls_listen4) then
1031+
if not Assigned(sg_httpsrv_tls_listen3) then
10311032
raise ENotSupportedException.Create(SBrookTLSNotAvailable);
1032-
FActive := sg_httpsrv_tls_listen4(FHandle,
1033+
FActive := sg_httpsrv_tls_listen3(FHandle,
10331034
M.ToCNullableString(FSecurity.PrivateKey),
10341035
M.ToCNullableString(FSecurity.PrivatePassword),
10351036
M.ToCNullableString(FSecurity.Certificate),
10361037
M.ToCNullableString(FSecurity.Trust),
10371038
M.ToCNullableString(FSecurity.DHParams),
1038-
M.ToCNullableString(FSecurity.Priorities), M.ToCString(FHostName),
1039-
FPort, FBacklog, FThreaded);
1039+
M.ToCNullableString(FSecurity.Priorities), FPort, FThreaded);
10401040
end;
10411041
end
10421042
else

0 commit comments

Comments
 (0)