mirror of
https://github.com/curl/curl.git
synced 2026-08-01 18:10:29 +03:00
curl tool: Exclude SMB from the protocol redirect
As local files could be accessed through \\localhost\c$.
This commit is contained in:
parent
b359badd49
commit
c8996bab1c
1 changed files with 3 additions and 2 deletions
|
|
@ -36,8 +36,9 @@ void config_init(struct OperationConfig* config)
|
|||
config->maxredirs = DEFAULT_MAXREDIRS;
|
||||
config->proto = CURLPROTO_ALL; /* FIXME: better to read from library */
|
||||
config->proto_present = FALSE;
|
||||
config->proto_redir =
|
||||
CURLPROTO_ALL & ~(CURLPROTO_FILE|CURLPROTO_SCP); /* not FILE or SCP */
|
||||
config->proto_redir = CURLPROTO_ALL & /* All except FILE, SCP and SMB */
|
||||
~(CURLPROTO_FILE | CURLPROTO_SCP | CURLPROTO_SMB |
|
||||
CURLPROTO_SMBS);
|
||||
config->proto_redir_present = FALSE;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue