Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
C
Coredns
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
Railgun
Coredns
Commits
12b304d9
"...Irrlicht/svn:/svn.code.sf.net/p/irrlicht/code/trunk@3404" did not exist on "88a3cc6126611d731d7294329ebe1ef1e9a22e9a"
Commit
12b304d9
authored
Apr 09, 2016
by
Miek Gieben
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Allow IXFR as well (#97)
parent
ad221f4b
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
middleware/file/xfr.go
middleware/file/xfr.go
+2
-2
No files found.
middleware/file/xfr.go
View file @
12b304d9
...
...
@@ -16,13 +16,13 @@ type (
}
)
// Serve an AXFR (
or maybe later an
IXFR) as well.
// Serve an AXFR (
and fallback of
IXFR) as well.
func
(
x
Xfr
)
ServeDNS
(
ctx
context
.
Context
,
w
dns
.
ResponseWriter
,
r
*
dns
.
Msg
)
(
int
,
error
)
{
state
:=
middleware
.
State
{
W
:
w
,
Req
:
r
}
if
!
x
.
TransferAllowed
(
state
)
{
return
dns
.
RcodeServerFailure
,
nil
}
if
state
.
QType
()
!=
dns
.
TypeAXFR
{
if
state
.
QType
()
!=
dns
.
TypeAXFR
&&
state
.
QType
()
!=
dns
.
TypeIXFR
{
return
0
,
fmt
.
Errorf
(
"xfr called with non transfer type: %d"
,
state
.
QType
())
}
...
...
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