Skip to content

Commit 7ca3f9d

Browse files
committed
restrict direct oeis fetch
1 parent e4ca824 commit 7ca3f9d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/mine/api_client.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,8 @@ void ApiClient::getOeisFile(const std::string& filename,
104104

105105
// fetch file
106106
std::string url, ext;
107-
if (oeis_fetch_direct) {
107+
if (oeis_fetch_direct && (filename.front() == 'b' || filename == "names" ||
108+
filename == "stripped")) {
108109
url = "https://www.oeis.org/";
109110
if (filename.front() == 'b') {
110111
auto id = filename.substr(1, 6);

0 commit comments

Comments
 (0)