Commit 817f3960 authored by Ning Xie's avatar Ning Xie Committed by Miek Gieben

fix hard code about server type (#759)

parent f8232a29
...@@ -125,7 +125,7 @@ func confLoader(serverType string) (caddy.Input, error) { ...@@ -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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment