Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
mpd
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Иван Мажукин
mpd
Commits
7ab0dfc8
Commit
7ab0dfc8
authored
2 years ago
by
jcorporation
Committed by
Max Kellermann
2 years ago
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Sets the curl proxy ssl verify options to the values of the host configuration options
This fixes #1616
parent
15ff7c4c
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
0 deletions
+10
-0
CurlInputPlugin.cxx
src/input/plugins/CurlInputPlugin.cxx
+2
-0
Request.hxx
src/lib/curl/Request.hxx
+8
-0
No files found.
src/input/plugins/CurlInputPlugin.cxx
View file @
7ab0dfc8
...
...
@@ -439,6 +439,8 @@ CurlInputStream::InitEasy()
request
->
SetVerifyPeer
(
verify_peer
);
request
->
SetVerifyHost
(
verify_host
);
request
->
SetOption
(
CURLOPT_HTTPHEADER
,
request_headers
.
Get
());
request
->
SetProxyVerifyPeer
(
verify_peer
);
request
->
SetProxyVerifyHost
(
verify_host
);
}
void
...
...
This diff is collapsed.
Click to expand it.
src/lib/curl/Request.hxx
View file @
7ab0dfc8
...
...
@@ -123,6 +123,14 @@ public:
easy
.
SetVerifyPeer
(
value
);
}
void
SetProxyVerifyHost
(
bool
value
)
{
easy
.
SetOption
(
CURLOPT_PROXY_SSL_VERIFYHOST
,
value
?
2L
:
0L
);
}
void
SetProxyVerifyPeer
(
bool
value
)
{
easy
.
SetOption
(
CURLOPT_PROXY_SSL_VERIFYPEER
,
value
);
}
void
SetNoBody
(
bool
value
=
true
)
{
easy
.
SetNoBody
(
value
);
}
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment