Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
D
Dnsmasq
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nanahira
Dnsmasq
Commits
1f1873aa
Commit
1f1873aa
authored
May 11, 2018
by
Simon Kelley
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Log warning on very large cachesize config, instead of truncating it.
parent
0a496f05
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
3 deletions
+5
-3
src/dnsmasq.c
src/dnsmasq.c
+5
-1
src/option.c
src/option.c
+0
-2
No files found.
src/dnsmasq.c
View file @
1f1873aa
...
...
@@ -740,7 +740,11 @@ int main (int argc, char **argv)
else
{
if
(
daemon
->
cachesize
!=
0
)
my_syslog
(
LOG_INFO
,
_
(
"started, version %s cachesize %d"
),
VERSION
,
daemon
->
cachesize
);
{
my_syslog
(
LOG_INFO
,
_
(
"started, version %s cachesize %d"
),
VERSION
,
daemon
->
cachesize
);
if
(
daemon
->
cachesize
>
10000
)
my_syslog
(
LOG_WARNING
,
_
(
"cache size greater than 10000 may cause performance issues, and is unlikely to be useful."
));
}
else
my_syslog
(
LOG_INFO
,
_
(
"started, version %s cache disabled"
),
VERSION
);
...
...
src/option.c
View file @
1f1873aa
...
...
@@ -2603,8 +2603,6 @@ static int one_opt(int option, char *arg, char *errstr, char *gen_err, int comma
if
(
size
<
0
)
size
=
0
;
else
if
(
size
>
10000
)
size
=
10000
;
daemon
->
cachesize
=
size
;
}
...
...
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