mirror of
https://github.com/coredns/coredns.git
synced 2025-10-28 08:44:17 -04:00
fix hard code about server type (#759)
This commit is contained in:
@@ -125,7 +125,7 @@ func confLoader(serverType string) (caddy.Input, error) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if conf == "stdin" {
|
if conf == "stdin" {
|
||||||
return caddy.CaddyfileFromPipe(os.Stdin, "dns")
|
return caddy.CaddyfileFromPipe(os.Stdin, serverType)
|
||||||
}
|
}
|
||||||
|
|
||||||
contents, err := ioutil.ReadFile(conf)
|
contents, err := ioutil.ReadFile(conf)
|
||||||
|
|||||||
Reference in New Issue
Block a user