fix hard code about server type
@@ -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)
