mirror of
https://github.com/infiniflow/ragflow.git
synced 2026-08-03 06:17:29 +08:00
Go: fix SSRF (#17641)
### Summary Check the URL to prevent SSRF attack. --------- Signed-off-by: Jin Hai <haijin.chn@gmail.com>
This commit is contained in:
@@ -61,7 +61,7 @@ func NewModelScopeModel(baseURL map[string]string, urlSuffix URLSuffix) *ModelSc
|
||||
BaseURL: baseURL,
|
||||
URLSuffix: urlSuffix,
|
||||
AllowEmptyAPIKey: true,
|
||||
httpClient: NewDriverHTTPClient(),
|
||||
httpClient: NewDriverHTTPClient(true),
|
||||
},
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user