fix hard code about server type (#759)

This commit is contained in:
Ning Xie
2017-06-28 17:05:54 +08:00
committed by Miek Gieben
parent f8232a2930
commit 817f3960b8

View File

@@ -125,7 +125,7 @@ func confLoader(serverType string) (caddy.Input, error) {
}
if conf == "stdin" {
return caddy.CaddyfileFromPipe(os.Stdin, "dns")
return caddy.CaddyfileFromPipe(os.Stdin, serverType)
}
contents, err := ioutil.ReadFile(conf)